From ca464dcb6096a1b73e607d2595a5ff27585b8b5a Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Feb 07 2019 07:36:39 +0000 Subject: Fix Cython installation for fresh CPythons We try to fetch a wheel only and if that fails, we disable compilation. Useful for fresh CPythons such as 3.8 now, where wheels are not yet ready, but Cython defaults to compiling (because it detects CPython). Note that --install-option="--no-cython-compile" makes pip use source package, hence we don't want to use it right away. We still prefer wheel over sdist. --- diff --git a/smoke/venv.sh b/smoke/venv.sh index 9585acc..4281e5c 100755 --- a/smoke/venv.sh +++ b/smoke/venv.sh @@ -36,7 +36,9 @@ if [ "$VERSION" == "2.6" ]; then else python -m pip install pytest if [ "$PYTHON" != "jython" ]; then - python -m pip install Cython + # 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