From 5917601666ee8e0243d68812d9d3ba1686b36d7d Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 4 Apr 2022 18:46:25 +0200 Subject: [PATCH] Ext:[skip ci] drop prefix argument from Python code to make sure the absolute path to dist-packages is used. This allows to set CMAKE_INSTALL_PREFIX to something else than /usr and freecad as Python package is still installed into the correct directory. For more details see: https://forum.freecadweb.org/viewtopic.php?f=4&t=67750 --- src/Ext/freecad/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ext/freecad/CMakeLists.txt b/src/Ext/freecad/CMakeLists.txt index 70aa6b7d9c..3dbb5a00ea 100644 --- a/src/Ext/freecad/CMakeLists.txt +++ b/src/Ext/freecad/CMakeLists.txt @@ -1,5 +1,5 @@ EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c -"from distutils.sysconfig import get_python_lib; print(get_python_lib(prefix='', plat_specific=True))" +"from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=True))" OUTPUT_VARIABLE python_libs OUTPUT_STRIP_TRAILING_WHITESPACE ) SET(PYTHON_MAIN_DIR ${python_libs})