Skip to content

Commit 9f677bf

Browse files
authored
Install the Python libs to system site-packages instead of root (#2274)
Occurs when using USE_SYSTEM_PATHS_FOR_PYTHON_INSTALLATION flag. Signed-off-by: Øystein Sture <os@skarvtech.com>
1 parent 8f84b05 commit 9f677bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ if(USE_SYSTEM_PATHS_FOR_PYTHON_INSTALLATION)
2222

2323
if(USE_DIST_PACKAGES_FOR_PYTHON)
2424
string(REPLACE "site-packages" "dist-packages" GZ_PYTHON_INSTALL_PATH ${Python3_SITEARCH})
25+
else()
26+
# custom cmake command is returning dist-packages
27+
string(REPLACE "dist-packages" "site-packages" GZ_PYTHON_INSTALL_PATH ${Python3_SITEARCH})
2528
endif()
2629
else()
2730
# If not a system installation, respect local paths

0 commit comments

Comments
 (0)