1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Fixes discovery of requirement locations with absolute versions

This commit is contained in:
Jannis Leidel 2009-01-25 15:05:15 +01:00
parent 9410a91e6c
commit 39858fb4f2

5
pip.py
View file

@ -993,8 +993,9 @@ class PackageFinder(object):
locations = list(self.find_links)
locations.extend(self.dependency_links)
for version in req.absolute_versions:
locations = [
posixpath.join(url, url_name, version)] + locations
if url_name is not None:
locations = [
posixpath.join(url, url_name, version)] + locations
locations = [Link(url) for url in locations]
logger.debug('URLs to search for versions for %s:' % req)
for location in locations: