Skip to content

Commit

Permalink
Really stop compiling Cython
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Jul 10, 2023
1 parent cd6c49a commit 62b62d2
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions scripts/releases/make-manylinux
Expand Up @@ -146,7 +146,16 @@ if [ -d /gevent -a -d /opt/python ]; then
# a tiny subset of tests)
echo Possible Builds
ls -l /opt/python/
for variant in /opt/python/cp{38,39,310,311,312}*; do

# If there is no Cython binary wheel available, don't try to build one; it takes
# forever! The old way of --install-option="--no-cython-compile" doesn't work because
# pip dropped support for it, and the "supported" way, --config-settings='--install-option="--no-cython-compile"'
# also doesn't work. Fortunately, Cython also reads an environment variable.
export NO_CYTHON_COMPILE=true

# Start echoing commands (doing it earlier is too much)
set -x
for variant in /opt/python/cp{312,38,39,310,311,312}*; do
echo $SEP
export PATH="$variant/bin:$OPATH"
if [ -n "$SLOW_BUILD" ]; then
Expand All @@ -163,9 +172,8 @@ if [ -d /gevent -a -d /opt/python ]; then
# The downside is that we must install dependencies manually.
# NOTE: We can't upgrade ``wheel`` because ``auditwheel`` depends on
# it, and auditwheel is installed in one of these environments.
# If there is no Cython binary wheel available, don't try to build one; it takes
# forever!
time python -m pip install --config-settings='--install-option="--no-cython-compile"' -U 'cython>=3.0b3; python_version < "3.12"' "Cython @ https://github.com/cython/cython/archive/37f4dcdc04547875e2836fda076f5707ec50e579.zip; python_version >= '3.12'"
time python -m pip install -U 'cython>=3.0b3; python_version < "3.12"'
time python -m pip install -v -U "Cython @ https://github.com/cython/cython/archive/37f4dcdc04547875e2836fda076f5707ec50e579.zip; python_version >= '3.12'"
time python -mpip install -U cffi 'greenlet >= 2.0.0; python_version < "3.12"' 'greenlet >= 3.0a1; python_version >= "3.12"' setuptools
echo "$variant: Building wheel"
time (python setup.py bdist_wheel)
Expand Down

0 comments on commit 62b62d2

Please sign in to comment.