def _get_info_from_wheel(self, url):
    self._log('Downloading wheel: {}'.format(urlparse.urlparse(url).path.rsplit('/')[(- 1)]), level='debug')
    filename = os.path.basename(urlparse.urlparse(url).path.rsplit('/')[(- 1)])
    with temporary_directory() as temp_dir:
        filepath = (Path(temp_dir) / filename)
        self._download(url, str(filepath))
        return PackageInfo.from_wheel(filepath)
def _get_info_from_wheel(self, url):
    self._log('Downloading wheel: {}'.format(urlparse.urlparse(url).path.rsplit('/')[(- 1)]), level='debug')
    filename = os.path.basename(urlparse.urlparse(url).path.rsplit('/')[(- 1)])
    with temporary_directory() as temp_dir:
        filepath = (Path(temp_dir) / filename)
        self._download(url, str(filepath))
        return PackageInfo.from_wheel(filepath)