Update get-pip URL to the new location
The pypa team has made a new static location for get-pip.py. Instead of downloading from github, we should use this. Change-Id: Ifb7f00447d4a19f20f6413fa7fece5913de092f8
This commit is contained in:
parent
f98ad18c66
commit
25a33f31c5
@ -17,7 +17,7 @@
|
||||
# under the License.
|
||||
|
||||
# Install pip using get-pip
|
||||
PIP_GET_PIP_URL=https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py
|
||||
PIP_GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
|
||||
|
||||
curl -O $PIP_GET_PIP_URL || wget $PIP_GET_PIP_URL
|
||||
python get-pip.py
|
||||
|
@ -157,9 +157,7 @@ def main():
|
||||
|
||||
# cache get-pip, because upstream network connection fails more
|
||||
# often than you might imagine.
|
||||
download(
|
||||
'https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py',
|
||||
'get-pip.py')
|
||||
download('https://bootstrap.pypa.io/get-pip.py', 'get-pip.py')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -23,7 +23,7 @@ for p in python-pip python3-pip ; do
|
||||
done
|
||||
|
||||
# install pip using get-pip
|
||||
PIP_GET_PIP_URL=https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py
|
||||
PIP_GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
|
||||
if [ ! -f get-pip.py ] ; then
|
||||
curl -O $PIP_GET_PIP_URL || wget $PIP_GET_PIP_URL
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user