Skip to content

Commit 261507c

Browse files
committed
Allow building wheels for free-threaded Python
They cannot use the limited API, but we can build version-specific wheels.
1 parent d4ab987 commit 261507c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ jobs:
109109
CIBW_BEFORE_BUILD_WINDOWS: scripts\build-libsrtp.bat C:\cibw\vendor
110110
CIBW_ENVIRONMENT: CFLAGS=-I/tmp/vendor/include LDFLAGS=-L/tmp/vendor/lib PKG_CONFIG_PATH=/tmp/vendor/lib/pkgconfig
111111
CIBW_ENVIRONMENT_WINDOWS: INCLUDE=C:\\cibw\\vendor\\include LIB=C:\\cibw\\vendor\\lib
112-
# The limited API is not available on free-threaded builds.
113-
CIBW_SKIP: 'cp3??t-*'
114112
CIBW_TEST_COMMAND: python -m unittest discover -s {project}/tests
115113
shell: bash
116114
run: |

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class bdist_wheel_abi3(bdist_wheel):
66
def get_tag(self):
77
python, abi, plat = super().get_tag()
88

9-
if python.startswith("cp"):
9+
if python.startswith("cp") and not python.endswith("t"):
1010
return "cp310", "abi3", plat
1111

1212
return python, abi, plat

0 commit comments

Comments
 (0)