From 47c2e05d4d86206e15fdf7d14e6f00637dd81f94 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Wed, 6 Apr 2016 22:26:41 -0400 Subject: [PATCH] 8904: Avoid installing pip >= 8 in a Python 3.2 virtualenv. --- build/run-tests.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/run-tests.sh b/build/run-tests.sh index 041c7c2f90..de64b8cc5b 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -384,7 +384,12 @@ setup_virtualenv() { if ! [[ -e "$venvdest/bin/activate" ]] || ! [[ -e "$venvdest/bin/pip" ]]; then virtualenv --setuptools "$@" "$venvdest" || fatal "virtualenv $venvdest failed" fi - "$venvdest/bin/pip" install 'setuptools>=18' 'pip>=7' + if [[ $("$venvdest/bin/python" --version 2>&1) =~ \ 3\.[012]\. ]]; then + # pip 8.0.0 dropped support for python 3.2, e.g., debian wheezy + "$venvdest/bin/pip" install 'setuptools>=18' 'pip>=7,<8' + else + "$venvdest/bin/pip" install 'setuptools>=18' 'pip>=7' + fi # ubuntu1404 can't seem to install mock via tests_require, but it can do this. "$venvdest/bin/pip" install 'mock>=1.0' 'pbr<1.7.0' } -- 2.39.5