code: def _get_wheel_metadata_from_wheel(
          backend, metadata_directory, config_settings):
      
      from zipfile import ZipFile
      whl_basename = backend.build_wheel(metadata_directory, config_settings)
      with open(os.path.join(metadata_directory, WHEEL_BUILT_MARKER), 'wb'):
          pass  # Touch marker file
  
      whl_file = os.path.join(metadata_directory, whl_basename)
      with ZipFile(whl_file) as zipf:
          dist_info = _dist_info_files(zipf)
          zipf.extractall(path=metadata_directory, members=dist_info)
      return dist_info[0].split('/')[0]
docs: Build a wheel and extract the metadata from it.
  
      Fallback for when the build backend does not
      define the 'get_wheel_metadata' hook.