summaryrefslogtreecommitdiff
path: root/setuptools/command/editable_wheel.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/editable_wheel.py')
-rw-r--r--setuptools/command/editable_wheel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/command/editable_wheel.py b/setuptools/command/editable_wheel.py
index 199dbd7c..d44d216f 100644
--- a/setuptools/command/editable_wheel.py
+++ b/setuptools/command/editable_wheel.py
@@ -62,10 +62,11 @@ class editable_wheel(Command):
self.dist_info_dir = dist_info.dist_info_dir
else:
assert str(self.dist_info_dir).endswith(".dist-info")
- assert list(Path(self.dist_info_dir).glob("*.dist-info/METADATA"))
+ assert Path(self.dist_info_dir, "METADATA").exists()
def _create_wheel_file(self, bdist_wheel):
from wheel.wheelfile import WheelFile
+
dist_info = self.get_finalized_command("dist_info")
tag = "-".join(bdist_wheel.get_tag())
editable_name = dist_info.name