Skip to content

Commit d1c6404

Browse files
authored
BLD: Try installing older Cython for windows free threading build (#61249)
* BLD: Try pinning ninja<1.11.1.4 for windows free threading build * quote * change to triple and double quotes * Add in script instead * Add in script instead * Try numpy 2.2.3 * Double quotes * Try 2.2.2 * Install older Cython * Try commit from March 17 * try march 19 commit 0b866bf7d43ced968dba4e9726316f963aae8f3c * Try march 18 commit b4917f731da50062f8ba53737ade7b82b4c8fcf2 * One commit after c compiler warnings PR * Use March 20 commit 93a7d09d47d8aae0dfcea41d06f4b140a1161499 * Use cb156c48d94b7e13363ab791b16bdeeb3392f21e before vector call * One more divmod commit * USe divmod commit * Use commit before divmod, undo ninja and numpy changes
1 parent b4d851c commit d1c6404

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ setup = ['--vsenv'] # For Windows
148148

149149
[tool.cibuildwheel]
150150
skip = "cp36-* cp37-* cp38-* cp39-* pp* *_i686 *_ppc64le *_s390x"
151-
build-verbosity = "3"
151+
build-verbosity = 3
152152
environment = {LDFLAGS="-Wl,--strip-all"}
153153
test-requires = "hypothesis>=6.84.0 pytest>=7.3.2 pytest-xdist>=3.4.0"
154154
test-command = """
@@ -160,6 +160,7 @@ free-threaded-support = true
160160
before-build = "PACKAGE_DIR={package} bash {package}/scripts/cibw_before_build.sh"
161161

162162
[tool.cibuildwheel.windows]
163+
environment = {}
163164
before-build = "pip install delvewheel && bash {package}/scripts/cibw_before_build_windows.sh"
164165
before-test = "bash {package}/scripts/cibw_before_test_windows.sh"
165166
test-command = """

scripts/cibw_before_build_windows.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ for file in $PACKAGE_DIR/LICENSES/*; do
55
done
66

77
# TODO: Delete when there's a PyPI Cython release that supports free-threaded Python 3.13
8-
# and a NumPy Windows wheel for the free-threaded build on PyPI.
98
FREE_THREADED_BUILD="$(python -c"import sysconfig; print(bool(sysconfig.get_config_var('Py_GIL_DISABLED')))")"
109
if [[ $FREE_THREADED_BUILD == "True" ]]; then
1110
python -m pip install -U pip
12-
python -m pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy cython
13-
python -m pip install ninja meson-python versioneer[toml]
11+
# python -m pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple cython
12+
# TODO: Remove below and uncomment above once https://github.com/cython/cython/pull/6717 no longer breaks tests
13+
python -m pip install git+https://github.com/cython/cython.git@3276b588720a053c78488e5de788605950f4b136
14+
python -m pip install ninja meson-python versioneer[toml] numpy
1415
fi

0 commit comments

Comments
 (0)