From d7cf02c145474ae62753f7f8ee344f6138be485c Mon Sep 17 00:00:00 2001 From: Petr Šplíchal Date: Aug 14 2018 11:13:50 +0000 Subject: Pip adjustments to make it work with python 2.6 --- diff --git a/smoke/venv.sh b/smoke/venv.sh index 9d211db..5b166dd 100755 --- a/smoke/venv.sh +++ b/smoke/venv.sh @@ -30,7 +30,11 @@ set -u python -c 'import sys; print(sys.version)' | head -n1 | grep $VERSION # install packages with pip -python -m pip install pytest +if [ "$VERSION" == "2.6" ]; then + pip install pytest Cython +else + python -m pip install pytest Cython +fi # run tests cat > test_foo.py << EOF @@ -58,7 +62,6 @@ from Cython.Build import cythonize setup(ext_modules = cythonize('module.pyx')) EOF -python -m pip install Cython python setup.py build_ext --inplace python -c 'import module; print(module.two())' | grep '^2$'