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