Skip to content

Commit

Permalink
Install the Python libs to system site-packages instead of root
Browse files Browse the repository at this point in the history
Occurs when using USE_SYSTEM_PATHS_FOR_PYTHON_INSTALLATION flag.

Signed-off-by: Øystein Sture <[email protected]>
  • Loading branch information
oysstu committed Jan 2, 2024
1 parent 8f84b05 commit 71e77b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ if(USE_SYSTEM_PATHS_FOR_PYTHON_INSTALLATION)

if(USE_DIST_PACKAGES_FOR_PYTHON)
string(REPLACE "site-packages" "dist-packages" GZ_PYTHON_INSTALL_PATH ${Python3_SITEARCH})
else()
# custom cmake command is returning dist-packages
string(REPLACE "dist-packages" "site-packages" GZ_PYTHON_INSTALL_PATH ${Python3_SITEARCH})
endif()
else()
# If not a system installation, respect local paths
Expand Down

0 comments on commit 71e77b4

Please sign in to comment.