def copy_metadata(package_name):
 dist = pkg_resources.get_distribution(package_name)
 metadata_dir = dist.egg_info
 dest_dir = '{}.egg-info'.format(dist.egg_name())
 if (metadata_dir is None):
  metadata_dir = os.path.join(dist.location, dest_dir)
 assert os.path.exists(metadata_dir)
 logger.debug('Package {} metadata found in {} belongs in {}'.format(package_name, metadata_dir, dest_dir))
 return [(metadata_dir, dest_dir)]

def copy_metadata ( package_name ) : dist = pkg_resources . get_distribution ( package_name ) metadata_dir = dist . egg_info dest_dir = '{}.egg-info' . format ( dist . egg_name ( ) ) if ( metadata_dir is None ) : metadata_dir = os . path . join ( dist . location , dest_dir ) assert os . path . exists ( metadata_dir ) logger . debug ( 'Package {} metadata found in {} belongs in {}' . format ( package_name , metadata_dir , dest_dir ) ) return [ ( metadata_dir , dest_dir ) ]
this function returns a list to be assigned to the datas global variable .