Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use Python 3.15b2 for now until cibuildwheel is updated
There actually *was* an ABI change in the thread_state struct
(adding a field) and Cython grabs `current_exception` from it directly
breaking Cython builds running on 3.15b4 but build prior to it.

There is no fix other than building with 3.15b4 but since cibuildwheel
is still on b2 the only "fix" is to pin to b2 for now (b3 would work
as well to be fair).

This *will* of course segfault again as soon as cibuildwheel is bumped
to b4+ and then we can remove the precise `b2` versioning for
setup-python.

I am trying to re-activate the windows 3.15 builds, IIRC they were
failing and skipped, so lets see.
  • Loading branch information
seberg committed Jul 28, 2026
commit d845179f17e5c6286c6d286aa60c25ddbbb81160
7 changes: 5 additions & 2 deletions .github/workflows/build-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,11 @@ jobs:
id: setup-python2
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python-version }}
# TODO: remove allow-prereleases once 3.15 is officially supported
# TODO: Pin beta.2 precisely until cibuildwheel catches up (b4 broke ABI for Cython);
# this precise pin requires the explicit `freethreaded`.
# When 3.15 is officially supported we can also remove the `allow-prereleases` override.
python-version: ${{ startsWith(matrix.python-version, '3.15') && '3.15.0-beta.2' || matrix.python-version }}
freethreaded: ${{ endsWith(matrix.python-version, 't') }}
allow-prereleases: ${{ startsWith(matrix.python-version, '3.15') }}

- name: verify free-threaded build
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test-wheel-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,11 @@ jobs:
- name: Set up Python ${{ matrix.PY_VER }}
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.PY_VER }}
# TODO: remove allow-prereleases once 3.15 is officially supported
# TODO: Pin beta.2 precisely until cibuildwheel catches up (b4 broke ABI for Cython)
# this precise pin requires the explicit `freethreaded`.
# When 3.15 is officially supported we can also remove the `allow-prereleases` override.
python-version: ${{ startsWith(matrix.PY_VER, '3.15') && '3.15.0-beta.2' || matrix.PY_VER }}
freethreaded: ${{ endsWith(matrix.PY_VER, 't') }}
allow-prereleases: ${{ startsWith(matrix.PY_VER, '3.15') }}
env:
# we use self-hosted runners on which setup-python behaves weirdly (Python include can't be found)...
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test-wheel-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,12 @@ jobs:
- name: Set up Python ${{ matrix.PY_VER }}
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.PY_VER }}
# TODO: Pin beta.2 precisely until cibuildwheel catches up (b4 broke ABI for Cython)
# this precise pin requires the explicit `freethreaded`.
# When 3.15 is officially supported we can also remove the `allow-prereleases` override.
python-version: ${{ startsWith(matrix.PY_VER, '3.15') && '3.15.0-beta.2' || matrix.PY_VER }}
freethreaded: ${{ endsWith(matrix.PY_VER, 't') }}
allow-prereleases: ${{ startsWith(matrix.PY_VER, '3.15') }}

- name: Verify LongPathsEnabled
run: |
Expand Down
2 changes: 2 additions & 0 deletions ci/test-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ windows:
- { ARCH: 'amd64', PY_VER: '3.14t', CUDA_VER: '12.9.1', LOCAL_CTK: '1', GPU: 'l4', GPU_COUNT: '1', DRIVER: 'latest', DRIVER_MODE: 'TCC' }
- { ARCH: 'amd64', PY_VER: '3.14t', CUDA_VER: '13.0.2', LOCAL_CTK: '0', GPU: 'a100', GPU_COUNT: '1', DRIVER: 'latest', DRIVER_MODE: 'MCDM' }
- { ARCH: 'amd64', PY_VER: '3.14t', CUDA_VER: '13.3.0', LOCAL_CTK: '0', GPU: 'a100', GPU_COUNT: '1', DRIVER: 'latest', DRIVER_MODE: 'MCDM' }
- { ARCH: 'amd64', PY_VER: '3.15', CUDA_VER: '13.3.0', LOCAL_CTK: '0', GPU: 'l4', GPU_COUNT: '1', DRIVER: 'latest', DRIVER_MODE: 'MCDM' }
- { ARCH: 'amd64', PY_VER: '3.15t', CUDA_VER: '13.3.0', LOCAL_CTK: '0', GPU: 'l4', GPU_COUNT: '1', DRIVER: 'latest', DRIVER_MODE: 'MCDM' }
# special runners
- { ARCH: 'amd64', PY_VER: '3.14', CUDA_VER: '13.3.0', LOCAL_CTK: '1', GPU: 't4', GPU_COUNT: '2', DRIVER: 'latest', DRIVER_MODE: 'TCC' }
- { ARCH: 'amd64', PY_VER: '3.14', CUDA_VER: '13.3.0', LOCAL_CTK: '0', GPU: 'h100', GPU_COUNT: '2', DRIVER: 'latest', DRIVER_MODE: 'MCDM' }
Expand Down
Loading