Skip to content

Commit e5250de

Browse files
committed
Enabling free-threading for 3.14 and 3.15
1 parent 9632981 commit e5250de

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/cibuildwheels.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ env:
2121
# x86_64 wheels yet, so `pip install` of the test venv would cross-compile
2222
# them from the arm64 runner -- which lacks the x86_64-apple-darwin Rust
2323
# target. The wheel itself builds fine, so ship it and skip only its test.
24-
CIBW_TEST_SKIP: "cp315-macosx_x86_64"
24+
# (`cp315*` so the free-threaded cp315t build is skipped for the same reason)
25+
CIBW_TEST_SKIP: "cp315*-macosx_x86_64"
2526
# Use explicit generator/compiler env vars; CMAKE_ARGS with spaces is not split on Windows.
2627
CIBW_ENVIRONMENT_WINDOWS: >-
2728
CMAKE_GENERATOR=Ninja
@@ -42,31 +43,38 @@ jobs:
4243
strategy:
4344
fail-fast: false
4445
matrix:
46+
# The `*` after the version list is what lets the free-threaded builds
47+
# through: their identifiers are `cp314t-...`, so a bare `cp314-...`
48+
# pattern silently drops them. cibuildwheel enables free-threading by
49+
# default from 3.14 on, so cp314t/cp315t are selected while cp313t is
50+
# not -- deliberate, as 3.13's free-threaded build was still marked
51+
# experimental (PEP 703 phase I) and carried a large single-thread
52+
# penalty. Opting into it would need CIBW_ENABLE: cpython-freethreading.
4553
include:
4654
# Linux x86_64 builds
4755
- os: ubuntu-latest
4856
arch: x86_64
49-
cibw_pattern: "cp3{11,12,13,14,15}-manylinux*"
57+
cibw_pattern: "cp3{11,12,13,14,15}*-manylinux*"
5058
artifact_name: "linux-x86_64"
5159

5260
# Linux ARM64 builds (native runners)
5361
- os: ubuntu-24.04-arm
5462
arch: aarch64
55-
cibw_pattern: "cp3{11,12,13,14,15}-manylinux*"
63+
cibw_pattern: "cp3{11,12,13,14,15}*-manylinux*"
5664
artifact_name: "linux-aarch64"
5765
# Don't use native runners for now (looks like wait times are too long)
5866
#runs-on: ["ubuntu-latest", "arm64"]
5967

6068
# Windows builds
6169
- os: windows-latest
6270
arch: x86_64
63-
cibw_pattern: "cp3{11,12,13,14,15}-win_amd64"
71+
cibw_pattern: "cp3{11,12,13,14,15}*-win_amd64"
6472
artifact_name: "windows-x86_64"
6573

6674
# macOS builds (universal2)
6775
- os: macos-latest
6876
arch: x86_64
69-
cibw_pattern: "cp3{11,12,13,14,15}-macosx*"
77+
cibw_pattern: "cp3{11,12,13,14,15}*-macosx*"
7078
artifact_name: "macos-universal2"
7179
steps:
7280
- name: Checkout repo

0 commit comments

Comments
 (0)