Enable Cython test for Python 3.12, using the git master

This commit is contained in:
Tomáš Hrnčiar 2023-02-09 17:04:16 +01:00
commit b9eebf1c79
2 changed files with 12 additions and 3 deletions

View file

@ -51,9 +51,14 @@ python -c 'import sys; print(sys.version)' | head -n1 | grep $VERSION
# install packages with pip
python -m pip install pytest
if [ "$CYTHON" == "true" ]; then
# We try to fetch a wheel only and if that fails, we disable compilation
# Useful for fresh CPythons, where wheels are not yet ready, but Cython defaults to compiling
python -m pip install Cython --only-binary :all: || python -m pip install Cython --install-option="--no-cython-compile"
if [ "$VERSION" == "3.12" ]; then
# Cython support for 3.12.0a1+ is not yet released
python -m pip install https://github.com/cython/cython/archive/master.tar.gz --install-option="--no-cython-compile"
else
# We try to fetch a wheel only and if that fails, we disable compilation
# Useful for fresh CPythons, where wheels are not yet ready, but Cython defaults to compiling
python -m pip install Cython --only-binary :all: || python -m pip install Cython --install-option="--no-cython-compile"
fi
fi
# run tests