Skip to content

Commit f472fb3

Browse files
committed
Python wheel: Add experimental support for 314t (ie python freethreaded) , except on windows
1 parent 5064457 commit f472fb3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

imgui_bundle_cmake/internal/add_imgui_bundle_bindings.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function(add_imgui_bundle_bindings)
5858
${all_pybind_files}
5959
)
6060

61-
nanobind_add_module(${python_native_module_name} ${python_module_sources})
61+
nanobind_add_module(${python_native_module_name} FREE_THREADED ${python_module_sources})
6262
target_compile_definitions(${python_native_module_name} PRIVATE VERSION_INFO=${PROJECT_VERSION})
6363

6464
litgen_setup_module(${bound_library} ${python_native_module_name} ${python_wrapper_module_name} ${IMGUI_BUNDLE_PATH}/bindings)

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ profile = "black"
101101
build-verbosity = 1
102102

103103
# Target python versions:
104-
build = ["cp312-*", "cp313-*", "cp314-*"]
104+
build = ["cp314t-*"]
105105

106106
# Tests
107107
test-requires = "pytest"
@@ -171,7 +171,8 @@ before-all = "apk add xorg-server-dev libxcursor-dev libxi-dev libxinerama-dev l
171171
# windows wheels options
172172
#------------------------------------
173173
[tool.cibuildwheel.windows]
174-
skip = ["*win32"]
174+
# do not build for python 3.14t (freethreaded) on windows yet (tries to link with python314.lib instead of python314t.lib)
175+
skip = ["*win32", "*cp314t*"]
175176

176177
# Environment variables
177178
# IMGUIBUNDLE_OPENCV_FETCH_SOURCE => Download a precompiled version of opencv4.6.0

0 commit comments

Comments
 (0)