File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,9 @@ createvirtualenv () {
26
26
# Upgrade to the latest versions of pip setuptools wheel so that
27
27
# pip can always download the latest cryptography+cffi wheels.
28
28
PYTHON_VERSION=$( python -c ' import sys;print("%s.%s" % sys.version_info[:2])' )
29
- if [[ $PYTHON_VERSION == " 3.4" ]]; then
30
- # pip 19.2 dropped support for Python 3.4.
31
- python -m pip install --upgrade ' pip<19.2'
32
- elif [[ $PYTHON_VERSION == " 2.7" || $PYTHON_VERSION == " 3.5" ]]; then
33
- # pip 21 will drop support for Python 2.7 and 3.5.
34
- python -m pip install --upgrade ' pip<21'
29
+ if [[ $PYTHON_VERSION == " 2.7" || $PYTHON_VERSION == " 3.4" || $PYTHON_VERSION == " 3.5" ]]; then
30
+ # Use get-pip for EOL Python versions.
31
+ curl --retry 3 -L https://bootstrap.pypa.io/pip/$PYTHON_VERSION /get-pip.py | python
35
32
else
36
33
python -m pip install --upgrade pip
37
34
fi
You can’t perform that action at this time.
0 commit comments