-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[PyOV] Adjust wheel building for free threaded Python #32422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[PyOV] Adjust wheel building for free threaded Python #32422
Conversation
Signed-off-by: p-wysocki <przemyslaw.wysocki@intel.com>
Signed-off-by: p-wysocki <przemyslaw.wysocki@intel.com>
Signed-off-by: p-wysocki <przemyslaw.wysocki@intel.com>
Signed-off-by: p-wysocki <przemyslaw.wysocki@intel.com>
…cki/openvino into free_threaded_adjustments Signed-off-by: p-wysocki <przemyslaw.wysocki@intel.com>
We also set python version in this function openvino/cmake/developer_package/packaging/packaging.cmake Lines 139 to 140 in 4167070
|
RESULT_VARIABLE pyversion_result | ||
) | ||
if(NOT pyversion OR pyversion_result) | ||
# Python3_VERSION_MAJOR and Python3_VERSION_MINOR are defined inside pybind11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CMake’s built-in FindPython3 module sets Python3_VERSION_MAJOR
"defined by CMake's FindPython3" is better
macro(ov_define_setup_py_packaging_vars) | ||
# Python3_VERSION_MAJOR and Python3_VERSION_MINOR are defined inside pybind11 | ||
set(pyversion python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}) | ||
set(pyversion_script " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To consider extracting this piece of code like in ov_get_pyversion
Details:
3.14
and3.14t
are treated as the same thing, sincet
is ignored. This PR fixes that.execute_process
, but the alternative is using pybind'sPython3_SOABI
, which holds a string likecpython-314t-x86_64-linux-gnu
, which forces usage of regex and string manipulations.Tickets: