File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ def finalize_options(self):
67
67
project_dir = dist .src_root or os .curdir
68
68
self .output_dir = Path (self .output_dir or project_dir )
69
69
70
- egg_info = self .reinitialize_command ("egg_info" )
70
+ egg_info = self .reinitialize_command ("egg_info" , reinit_subcommands = True )
71
71
egg_info .egg_base = str (self .output_dir )
72
72
self ._sync_tag_details (egg_info )
73
73
egg_info .finalize_options ()
@@ -102,7 +102,9 @@ def run(self):
102
102
# If in the future we don't want to use egg_info, we have to create the files:
103
103
# METADATA, entry-points.txt
104
104
shutil .copytree (egg_info_dir , dist_info_dir , ignore = lambda _ , __ : _IGNORE )
105
- shutil .copy2 (egg_info_dir / "PKG-INFO" , dist_info_dir / "METADATA" )
105
+ metadata_file = dist_info_dir / "METADATA"
106
+ shutil .copy2 (egg_info_dir / "PKG-INFO" , metadata_file )
107
+ log .debug (f"creating { str (os .path .abspath (metadata_file ))!r} " )
106
108
if self .distribution .dependency_links :
107
109
shutil .copy2 (egg_info_dir / "dependency_links.txt" , dist_info_dir )
108
110
You can’t perform that action at this time.
0 commit comments