def unpack_url(link, location, download_dir=None, only_download=False, session=None, hashes=None):
 if is_vcs_url(link):
  unpack_vcs_link(link, location)
 elif is_file_url(link):
  unpack_file_url(link, location, download_dir, hashes=hashes)
 else:
  if (session is None):
   session = PipSession()
  unpack_http_url(link, location, download_dir, session, hashes=hashes)
 if only_download:
  write_delete_marker_file(location)

def unpack_url ( link , location , download_dir = None , only_download = False , session = None , hashes = None ) : if is_vcs_url ( link ) : unpack_vcs_link ( link , location ) elif is_file_url ( link ) : unpack_file_url ( link , location , download_dir , hashes = hashes ) else : if ( session is None ) : session = PipSession ( ) unpack_http_url ( link , location , download_dir , session , hashes = hashes ) if only_download : write_delete_marker_file ( location )
unpack link .