Pip adjustments to make it work with python 2.6

This commit is contained in:
Petr Šplíchal 2018-08-14 13:13:50 +02:00
commit d7cf02c145

View file

@ -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$'