Skip to content

Commit 4695dc2

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! Build free-threaded CPython wheels
1 parent 15e5212 commit 4695dc2

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ jobs:
124124
- os: "windows-11-arm"
125125
python-version: "3.11"
126126
architecture: "arm64"
127-
- os: "windows-11-arm"
128-
python-version: "3.14t"
129-
architecture: "arm64"
127+
#- os: "windows-11-arm" # broken?
128+
# python-version: "3.14t"
129+
# architecture: "arm64"
130130
fail-fast: false
131131

132132
steps:

setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,19 @@ def get_package_data() -> list[str]:
4040
print("Did you forget to run 'git submodule update --init'?")
4141
sys.exit(1)
4242

43+
options = {
44+
"bdist_wheel": {
45+
"py_limited_api": "cp310",
46+
}
47+
}
48+
if "free-threading build" in sys.version:
49+
del options["bdist_wheel"]["py_limited_api"]
50+
4351
setup(
4452
py_modules=["libtcodpy"],
4553
packages=["tcod", "tcod.sdl", "tcod.__pyinstaller"],
4654
package_data={"tcod": get_package_data()},
4755
cffi_modules=["build_libtcod.py:ffi"],
4856
platforms=["Windows", "MacOS", "Linux"],
57+
options=options,
4958
)

0 commit comments

Comments
 (0)