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

Merge pull request #1032 from dholth/release-1.4

urlparse.urlparse() fix
This commit is contained in:
Daniel Holth 2013-07-05 07:15:04 -07:00
commit eb239a5c14

View file

@ -470,7 +470,7 @@ class PackageFinder(object):
return []
# This is a dirty hack to prevent installing Binary Wheels from
# PyPI or one of it's mirrors unless it is a Windows Binary
# PyPI or one of its mirrors unless it is a Windows Binary
# Wheel. This is paired with a change to PyPI disabling
# uploads for the same. Once we have a mechanism for enabling
# support for binary wheels on linux that deals with the
@ -479,7 +479,7 @@ class PackageFinder(object):
comes_from = getattr(link, "comes_from", None)
if (not platform.startswith('win')
and comes_from is not None
and urlparse(comes_from.url).netloc.endswith(
and urlparse.urlparse(comes_from.url).netloc.endswith(
"pypi.python.org")):
if not link.wheel.supported(tags=supported_tags_noarch):
logger.debug(