Commit 16758148 authored by Godefroid Chapelle's avatar Godefroid Chapelle

Problem: pypa moved get-pip again

Solution: use new advised URLs
parent 6ea3970c
......@@ -53,11 +53,11 @@ def install_pip():
try:
get_pip = os.path.join(tmp, 'get-pip.py')
if sys.version_info < (3, ):
GET_PIP_URL = 'https://bootstrap.pypa.io/2.7/get-pip.py'
GET_PIP_URL = 'https://bootstrap.pypa.io/pip/2.7/get-pip.py'
elif (sys.version_info.major, sys.version_info.minor) == (3, 5):
GET_PIP_URL = 'https://bootstrap.pypa.io/3.5/get-pip.py'
GET_PIP_URL = 'https://bootstrap.pypa.io/pip/3.5/get-pip.py'
else:
GET_PIP_URL = 'https://bootstrap.pypa.io/get-pip.py'
GET_PIP_URL = 'https://bootstrap.pypa.io/pip/get-pip.py'
with open(get_pip, 'wb') as f:
f.write(urlopen(GET_PIP_URL).read())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment