Skip to content

Commit 06f4fbb

Browse files
committed
ci: skip free-threaded python entirely
1 parent 9b6e105 commit 06f4fbb

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

.github/workflows/wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
- uses: pypa/cibuildwheel@v3.2
115115
env:
116116
# choose manylinux/musllinux (they are split for the sake of ci speedup)
117-
CIBW_SKIP: ${{ matrix.libc == 'glibc' && '*musllinux*' || '*manylinux*'}}
117+
CIBW_BUILD: ${{ matrix.libc == 'glibc' && '*manylinux*' || (matrix.libc == 'musl' && '*musllinux*' || '') }}
118118
CIBW_ARCHS: ${{ matrix.arch }}
119119

120120
- name: Verify clean directory

pyproject.toml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ cmake.define = { BUILD_SHARED_LIBS = "OFF" }
118118

119119

120120
[tool.cibuildwheel]
121-
# can't set `skip` here, since it's used in the gh workflow and would be overridden
122-
build = [
123-
"cp*-win_amd64",
124-
"cp*-win_arm64",
125-
"cp*-macosx_*",
126-
"cp*-manylinux_*",
127-
"cp*-musllinux_*",
121+
skip = [
122+
# pypy
123+
"pp*",
124+
# 32bit windows
125+
"*-win32",
126+
# free-threaded python versions
127+
"cp*t-*",
128128
]
129129
build-verbosity = 1
130130
environment-pass = ["CI", "VCPKG_BINARY_SOURCES", "COPY_VCPKG_BINARY_PATH"]
@@ -174,14 +174,6 @@ before-all = ["./scripts/setup-vcpkg.sh"]
174174
select = "*linux_{aarch64,armv7l,ppc64le,s390x,riscv64}"
175175
environment = { VCPKG_FORCE_SYSTEM_BINARIES = "1" }
176176

177-
# While this doesn't actually support free-threading just yet, we build wheels for it nonetheless,
178-
# even if it results in the GIL being re-enabled on import, just so they're available.
179-
# This results in a RuntimeWarning, which makes tests fail, so explicitly disable the
180-
# GIL for tests to avoid the warning.
181-
[[tool.cibuildwheel.overrides]]
182-
select = "cp*t-"
183-
test-environment = { PYTHON_GIL = "0" }
184-
185177

186178
# Needed for full C++17 support on macOS
187179
[tool.cibuildwheel.macos.environment]

0 commit comments

Comments
 (0)