Skip to content

Commit 3ef82d6

Browse files
authored
Use Python 3.15b2 for now until cibuildwheel is updated (#2433)
* 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. * Remove windows 3.15 runs again (at least until using NumPy wheels)
1 parent 94e3a76 commit 3ef82d6

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

‎.github/workflows/build-wheel.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,11 @@ jobs:
338338
id: setup-python2
339339
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
340340
with:
341-
python-version: ${{ matrix.python-version }}
342-
# TODO: remove allow-prereleases once 3.15 is officially supported
341+
# TODO: Pin beta.2 precisely until cibuildwheel catches up (b4 broke ABI for Cython);
342+
# this precise pin requires the explicit `freethreaded`.
343+
# When 3.15 is officially supported we can also remove the `allow-prereleases` override.
344+
python-version: ${{ startsWith(matrix.python-version, '3.15') && '3.15.0-beta.2' || matrix.python-version }}
345+
freethreaded: ${{ endsWith(matrix.python-version, 't') }}
343346
allow-prereleases: ${{ startsWith(matrix.python-version, '3.15') }}
344347

345348
- name: verify free-threaded build

‎.github/workflows/test-wheel-linux.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,11 @@ jobs:
296296
- name: Set up Python ${{ matrix.PY_VER }}
297297
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
298298
with:
299-
python-version: ${{ matrix.PY_VER }}
300-
# TODO: remove allow-prereleases once 3.15 is officially supported
299+
# TODO: Pin beta.2 precisely until cibuildwheel catches up (b4 broke ABI for Cython)
300+
# this precise pin requires the explicit `freethreaded`.
301+
# When 3.15 is officially supported we can also remove the `allow-prereleases` override.
302+
python-version: ${{ startsWith(matrix.PY_VER, '3.15') && '3.15.0-beta.2' || matrix.PY_VER }}
303+
freethreaded: ${{ endsWith(matrix.PY_VER, 't') }}
301304
allow-prereleases: ${{ startsWith(matrix.PY_VER, '3.15') }}
302305
env:
303306
# we use self-hosted runners on which setup-python behaves weirdly (Python include can't be found)...

‎.github/workflows/test-wheel-windows.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,12 @@ jobs:
276276
- name: Set up Python ${{ matrix.PY_VER }}
277277
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
278278
with:
279-
python-version: ${{ matrix.PY_VER }}
279+
# TODO: Pin beta.2 precisely until cibuildwheel catches up (b4 broke ABI for Cython)
280+
# this precise pin requires the explicit `freethreaded`.
281+
# When 3.15 is officially supported we can also remove the `allow-prereleases` override.
282+
python-version: ${{ startsWith(matrix.PY_VER, '3.15') && '3.15.0-beta.2' || matrix.PY_VER }}
283+
freethreaded: ${{ endsWith(matrix.PY_VER, 't') }}
284+
allow-prereleases: ${{ startsWith(matrix.PY_VER, '3.15') }}
280285

281286
- name: Verify LongPathsEnabled
282287
run: |

0 commit comments

Comments
 (0)