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 () {
2626 # Upgrade to the latest versions of pip setuptools wheel so that
2727 # pip can always download the latest cryptography+cffi wheels.
2828 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
3532 else
3633 python -m pip install --upgrade pip
3734 fi
You can’t perform that action at this time.
0 commit comments