Fix packages again

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2018-04-23 18:25:42 -04:00
parent 8fa2a9e69f
commit 703e34e4ec
3 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
# // ) ) / / // ) ) //___) ) // ) ) || / /
# //___/ / / / //___/ / // // / / || / /
# // / / // ((____ // / / ||/ /
__version__ = '11.10.1.dev3'
__version__ = '11.10.1.dev4'
+2 -2
View File
@@ -10,7 +10,7 @@ for package in ('urllib3', 'idna', 'chardet'):
# preserved (requests.packages.urllib3.* is urllib3.*)
for mod in list(sys.modules):
if mod == vendored_package or mod.startswith(vendored_package + '.'):
unprefixed_mod = mod[len("pip._vendor."):]
sys.modules['pip._vendor.requests.packages.' + unprefixed_mod] = sys.modules[mod]
unprefixed_mod = mod[len("pip9._vendor."):]
sys.modules['pip9._vendor.requests.packages.' + unprefixed_mod] = sys.modules[mod]
# Kinda cool, though, right?
+9 -1
View File
@@ -2,7 +2,7 @@ diff --git a/pipenv/vendor/pip9/_vendor/requests/packages.py b/pipenv/vendor/pip
index 9582fa7..3aca6f7 100644
--- a/pipenv/vendor/pip9/_vendor/requests/packages.py
+++ b/pipenv/vendor/pip9/_vendor/requests/packages.py
@@ -4,7 +4,7 @@ import sys
@@ -4,13 +4,13 @@ import sys
# I don't like it either. Just look the other way. :)
for package in ('urllib3', 'idna', 'chardet'):
@@ -11,3 +11,11 @@ index 9582fa7..3aca6f7 100644
locals()[package] = __import__(vendored_package)
# This traversal is apparently necessary such that the identities are
# preserved (requests.packages.urllib3.* is urllib3.*)
for mod in list(sys.modules):
if mod == vendored_package or mod.startswith(vendored_package + '.'):
- unprefixed_mod = mod[len("pip._vendor."):]
- sys.modules['pip._vendor.requests.packages.' + unprefixed_mod] = sys.modules[mod]
+ unprefixed_mod = mod[len("pip9._vendor."):]
+ sys.modules['pip9._vendor.requests.packages.' + unprefixed_mod] = sys.modules[mod]
# Kinda cool, though, right?