-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
triageNew bug, unverifiedNew bug, unverified
Description
Required prerequisites
- Make sure you've read the documentation. Your issue may be addressed there.
- Search the issue tracker and Discussions to verify that this hasn't already been reported. +1 or comment there if it has.
- Consider asking first in the Gitter chat room or in a Discussion.
What version (or hash if on master) of pybind11 are you using?
3.0.2 patch2a0
Problem description
I downloaded the official 3.14 python windows release from python.org and install the python 3.14t therein. When I compiles my extension with mingw (similar should be for MSVC), I explicitly assign in CMakeLists.txt that
set(PYTHON_EXECUTABLE "C:\Program Files\Python314\python3.14t.exe")I found two questionable things:
- the PYTHON_LIBRARY variable generated by python+"VERSION" will result in linking python314.dll instead of the expected python314t.dll
- I found no where to detect free-threading setting and define Py_GIL_DISABLED=1
Reproducible example code
CMakeLists.txt:
set(PYTHON_EXECUTABLE "C:\Program Files\Python314\python3.14t.exe")
# still need set following to work?
set(PYTHON_LIBRARY "C:\Program Files\Python314\libs\python314t.lib")
set(CMAKE_CXX_FLAG "${CMAKE_CXX_FLAGS} -DPy_GIL_DISABLED=1") # mingw, for example; /D for MSVC
Is this a regression? Put the last known working version here if it is.
Not a regression
theomonnom
Metadata
Metadata
Assignees
Labels
triageNew bug, unverifiedNew bug, unverified