pip doesn't work with Python 3.3 alpha 4 · Issue #552 · pypa/pip (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
urllib.parse no longer has 'uses_fragment', since:
http://hg.python.org/cpython/rev/a9d43e21f7d8
It seems that it's no longer needed, so the following patch may fix it. I wasn't able to test it since, I couldn't get mock installed via distribute on 3.3a4:
diff --git a/pip/vcs/__init__.py b/pip/vcs/__init__.py
index 0f43fee..7c984f9 100644
--- a/pip/vcs/__init__.py
+++ b/pip/vcs/__init__.py
@@ -19,7 +19,9 @@ class VcsSupport(object):
def __init__(self):
# Register more schemes with urlparse for various version control systems
urlparse.uses_netloc.extend(self.schemes)
- urlparse.uses_fragment.extend(self.schemes)
+ # Python 3.3 doesn't have uses_fragment
+ if gettattr(urlparse, 'uses_fragment', None):
+ urlparse.uses_fragment.extend(self.schemes)
super(VcsSupport, self).__init__()
def __iter__(self):