From 6e59b043da4d7ab90cf1dd1390a670dedb0a98be Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Thu, 20 Apr 2023 16:45:32 +0100 Subject: [PATCH] Simplify run_command in editable_wheel --- setuptools/command/editable_wheel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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