need a little help building 3.13t wheel for Windows #24319
-
I can build other wheels fine, but the free-threaded one is giving me a bit of trouble. My build makes some good progress...but then partway thru i get this:
i opened that vcxproj file and python313.lib isn't in there anywhere...but several references to python313t.lib are there (as expected) any idea where it's getting python313.lib from so that i can edit it? edit: i grepped the entire build folder and get no hits for python313.lib except for pybind .obj files, which have inside them: edit2: well, i tried something dumb. i renamed python313t.lib to python313.lib and stuck it in the build folder. the wheel built successfully, but doesn't work, oops =) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The library name is provided by cmake. https://cmake.org/cmake/help/latest/module/FindPython.html |
Beta Was this translation helpful? Give feedback.
-
ah, thanks! i think you set me on the right track, i totally forgot to define Py_GIL_DISABLED, i'll have another crack at this in a little bit |
Beta Was this translation helpful? Give feedback.
-
okay, success. free-threaded wheel built and tested with my ONNX model. |
Beta Was this translation helpful? Give feedback.
okay, success. free-threaded wheel built and tested with my ONNX model.
i upgraded to cmake4 (which isn't compatible with onnxruntime yet) and ran build.py with these parameters:
--cmake_extra_defines Py_GIL_DISABLED=1 CMAKE_POLICY_VERSION_MINIMUM=3.5