Skip to content

Commit

Permalink
Add w/a for python dir name
Browse files Browse the repository at this point in the history
Signed-off-by: p-wysocki <[email protected]>
  • Loading branch information
p-wysocki committed Dec 17, 2024
1 parent 752f71c commit 162ee2f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,12 @@ if(ENABLE_PYTHON_PACKAGING)
SETUPTOOLS_INSTALL_LIB=${ov_install_lib}
SETUPTOOLS_INSTALL_SCRIPTS=${ov_python_package_prefix}/bin
"${Python3_EXECUTABLE}" -m pip --python=/usr/bin/python3 install --verbose --ignore-requires-python --no-deps --no-compile --break-system-packages --prefix "${ov_python_package_prefix}" "${CMAKE_CURRENT_SOURCE_DIR}"
# Rename python version specific directory to python3
file(GLOB python_version_dirs "${ov_python_package_prefix}/lib/python3.*")
if(python_version_dirs)
get_filename_component(python_version_dirs ${python_version_dirs} NAME)
file(RENAME "${python_version_dir}" "${ov_python_package_prefix}/lib/python3")
endif()
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
DEPENDS ${ov_setup_py_deps}
COMMENT "Create python package with ${openvino_meta_info_subdir} folder")
Expand Down

0 comments on commit 162ee2f

Please sign in to comment.