From 76efde62d0dfdaede88d421f1d1e92018e6d4289 Mon Sep 17 00:00:00 2001 From: Julien Thierry Date: Tue, 26 Nov 2024 14:20:19 +0100 Subject: [PATCH] [ISSUE-132][BUGFIX] Fix python bindings install path --- cmake/custom_functions/python3.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/custom_functions/python3.cmake b/cmake/custom_functions/python3.cmake index ffab4118e..98edebae7 100644 --- a/cmake/custom_functions/python3.cmake +++ b/cmake/custom_functions/python3.cmake @@ -113,7 +113,7 @@ if (COMPILE_PYTHON3_BINDINGS) file(TO_CMAKE_PATH "${PYTHON_${_python_version}_LOCAL_SITE_PACKAGES}" PYTHON_${_python_version}_LOCAL_SITE_PACKAGES) endif (PYTHON3_SITE_PACKAGES) # ... it must be relative - string(REGEX REPLACE "^${STAGING_DIR_NATIVE}/usr/" "" PYTHON_${_python_version}_LOCAL_SITE_PACKAGES "${PYTHON_${_python_version}_LOCAL_SITE_PACKAGES}") + string(REGEX REPLACE "^${STAGING_DIR_NATIVE}/usr/(local/)?" "" PYTHON_${_python_version}_LOCAL_SITE_PACKAGES "${PYTHON_${_python_version}_LOCAL_SITE_PACKAGES}") endforeach () # this variable is used to create all python versions packages variables for cpack