diff --git a/setuptools/command/editable_wheel.py b/setuptools/command/editable_wheel.py index 371fd5a602..4c485b0e31 100644 --- a/setuptools/command/editable_wheel.py +++ b/setuptools/command/editable_wheel.py @@ -184,7 +184,7 @@ def _get_dist_info_name(self, tmp_dir): def _ensure_dist_info(self): if not Path(self.dist_info_dir, "METADATA").exists(): - self.distribution.run_command("dist_info") + self.run_command("dist_info") def _install_namespaces(self, installation_dir, pth_prefix): # XXX: Only required to support the deprecated namespace practice