File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,8 @@ def prepare_metadata_for_build_wheel(
127127 except AttributeError :
128128 if not _allow_fallback :
129129 raise HookMissing ()
130- return _get_wheel_metadata_from_wheel (backend , metadata_directory ,
130+ whl_basename = backend .build_wheel (metadata_directory , config_settings )
131+ return _get_wheel_metadata_from_wheel (whl_basename , metadata_directory ,
131132 config_settings )
132133 else :
133134 return hook (metadata_directory , config_settings )
@@ -149,14 +150,13 @@ def _dist_info_files(whl_zip):
149150
150151
151152def _get_wheel_metadata_from_wheel (
152- backend , metadata_directory , config_settings ):
153- """Build a wheel and extract the metadata from it .
153+ whl_basename , metadata_directory , config_settings ):
154+ """Extract the metadata from a wheel .
154155
155156 Fallback for when the build backend does not
156157 define the 'get_wheel_metadata' hook.
157158 """
158159 from zipfile import ZipFile
159- whl_basename = backend .build_wheel (metadata_directory , config_settings )
160160 with open (os .path .join (metadata_directory , WHEEL_BUILT_MARKER ), 'wb' ):
161161 pass # Touch marker file
162162
You can’t perform that action at this time.
0 commit comments