Skip to content

Commit 09dca2d

Browse files
authored
PYTHON-2944 Use get-pip for EOL Python versions (#759)
1 parent e32d214 commit 09dca2d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.evergreen/utils.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)