summaryrefslogtreecommitdiff
path: root/setuptools
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2023-04-21 16:42:39 +0100
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2023-05-03 14:10:21 +0100
commit83b5bb1b13a80bbcf955a5dde877b69bade4a4af (patch)
tree9582e714c98a7cc4d9eb5d315b308b50491b83a6 /setuptools
parentab8b8658e77f0400419e70bf989d5bf380851f24 (diff)
downloadpython-setuptools-git-83b5bb1b13a80bbcf955a5dde877b69bade4a4af.tar.gz
Small adjustments in dist_info
Diffstat (limited to 'setuptools')
-rw-r--r--setuptools/command/dist_info.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/setuptools/command/dist_info.py b/setuptools/command/dist_info.py
index f603a44a..64db8537 100644
--- a/setuptools/command/dist_info.py
+++ b/setuptools/command/dist_info.py
@@ -67,7 +67,7 @@ class dist_info(Command):
project_dir = dist.src_root or os.curdir
self.output_dir = Path(self.output_dir or project_dir)
- egg_info = self.reinitialize_command("egg_info")
+ egg_info = self.reinitialize_command("egg_info", reinit_subcommands=True)
egg_info.egg_base = str(self.output_dir)
self._sync_tag_details(egg_info)
egg_info.finalize_options()
@@ -102,7 +102,9 @@ class dist_info(Command):
# If in the future we don't want to use egg_info, we have to create the files:
# METADATA, entry-points.txt
shutil.copytree(egg_info_dir, dist_info_dir, ignore=lambda _, __: _IGNORE)
- shutil.copy2(egg_info_dir / "PKG-INFO", dist_info_dir / "METADATA")
+ metadata_file = dist_info_dir / "METADATA"
+ shutil.copy2(egg_info_dir / "PKG-INFO", metadata_file)
+ log.debug(f"creating {str(os.path.abspath(metadata_file))!r}")
if self.distribution.dependency_links:
shutil.copy2(egg_info_dir / "dependency_links.txt", dist_info_dir)