From b9dc63ad158ebeb9e62dee7127e27701b9f05bba Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Tue, 10 Jan 2023 13:37:41 +0100 Subject: [PATCH] Do not use Cython from master branch for Py 3.11 --- smoke/venv.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/smoke/venv.sh b/smoke/venv.sh index 362aa33..45ce205 100755 --- a/smoke/venv.sh +++ b/smoke/venv.sh @@ -51,14 +51,9 @@ python -c 'import sys; print(sys.version)' | head -n1 | grep $VERSION # install packages with pip python -m pip install pytest if [ "$CYTHON" == "true" ]; then - if [ "$VERSION" == "3.11" ]; then - # Cython support for 3.11.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 + # 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 # run tests