diff --git a/testsuite/install.sh b/testsuite/install.sh index bd745dd07..9783e4850 100755 --- a/testsuite/install.sh +++ b/testsuite/install.sh @@ -10,8 +10,8 @@ SITE_PACKAGES=$(python -c 'from distutils.sysconfig import get_python_lib; print if [[ ${PYVER:0:1} == "2" && $PYVER != "2.7" && $PYVER != "2.6" ]]; then pip install --index-url=https://pypi.org/simple -r testsuite/requirements-legacy.txt else - if [[ "$PYVER" == "2.6" ]]; then - pip install --index-url=https://pypi.org/simple --upgrade pip + if [[ "${PYVER:0:1}" == "2" ]]; then + pip install --index-url=https://pypi.org/simple --upgrade 'pip<21' else pip install --upgrade pip fi