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 @@ -75,7 +75,7 @@ def finalize_options(self):
75
75
project_dir = dist .src_root or os .curdir
76
76
self .output_dir = Path (self .output_dir or project_dir )
77
77
78
- egg_info = self .reinitialize_command ("egg_info" )
78
+ egg_info = self .reinitialize_command ("egg_info" , reinit_subcommands = True )
79
79
egg_info .egg_base = str (self .output_dir )
80
80
self ._sync_tag_details (egg_info )
81
81
egg_info .finalize_options ()
@@ -110,7 +110,9 @@ def run(self):
110
110
# If in the future we don't want to use egg_info, we have to create the files:
111
111
# METADATA, entry-points.txt
112
112
shutil .copytree (egg_info_dir , dist_info_dir , ignore = lambda _ , __ : _IGNORE )
113
- shutil .copy2 (egg_info_dir / "PKG-INFO" , dist_info_dir / "METADATA" )
113
+ metadata_file = dist_info_dir / "METADATA"
114
+ shutil .copy2 (egg_info_dir / "PKG-INFO" , metadata_file )
115
+ log .debug (f"creating { str (os .path .abspath (metadata_file ))!r} " )
114
116
if self .distribution .dependency_links :
115
117
shutil .copy2 (egg_info_dir / "dependency_links.txt" , dist_info_dir )
116
118
You can’t perform that action at this time.
0 commit comments