Pip adjustments to make it work with python 2.6
This commit is contained in:
parent
413ee19869
commit
d7cf02c145
1 changed files with 5 additions and 2 deletions
|
|
@ -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$'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue