Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/developer_package/packaging/packaging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function(ov_get_pyversion pyversion)
find_package(Python3 QUIET COMPONENTS Interpreter Develoment.Module)
if(Python3_Interpreter_FOUND)
set(_pyversion "python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}")
if(Python3_SOABI AND Python3_SOABI MATCHES "cpython-[0-9]+t-")
if(Python3_SOABI AND (Python3_SOABI MATCHES "cpython-[0-9]+t-" OR Python3_SOABI MATCHES "cp[0-9]+t-"))
set(_pyversion "${_pyversion}t")
endif()
set(${pyversion} "${_pyversion}" PARENT_SCOPE)
Expand Down
5 changes: 1 addition & 4 deletions src/bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,7 @@ add_subdirectory(src/pyopenvino)

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})
if(Python3_SOABI AND Python3_SOABI MATCHES "cpython-[0-9]+t-")
set(pyversion "${pyversion}t")
endif()
ov_get_pyversion(pyversion)

# define version (syncronize with tools/openvino_dev/CMakeLists.txt)
if(DEFINED ENV{CI_BUILD_DEV_TAG} AND NOT "$ENV{CI_BUILD_DEV_TAG}" STREQUAL "")
Expand Down
6 changes: 1 addition & 5 deletions src/bindings/python/src/pyopenvino/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ if(NOT DEFINED OpenVINO_SOURCE_DIR)
find_package(OpenVINODeveloperPackage REQUIRED)
endif()

# Python3_VERSION_MAJOR and Python3_VERSION_MINOR are defined by FindPython3
set(pyversion python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR})
if(Python3_SOABI AND Python3_SOABI MATCHES "cpython-[0-9]+t-")
set(pyversion "${pyversion}t")
endif()
ov_get_pyversion(pyversion)

if(OV_GENERATOR_MULTI_CONFIG)
set(PYTHON_BRIDGE_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/$<CONFIG>/python/openvino)
Expand Down
Loading