Skip to content

Commit

Permalink
[ISSUE-132][BUGFIX] Fix python bindings install path
Browse files Browse the repository at this point in the history
  • Loading branch information
jthierry-psee committed Nov 26, 2024
1 parent c783a07 commit 76efde6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/custom_functions/python3.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76efde6

Please sign in to comment.