You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Changing python install detected folder, to be relative folder. This is breaking on some build servers, due to returning an absolute path that is installed outside of the install prefix.
This commit is contained in:
@@ -116,12 +116,8 @@ if (NOT DEFINED PYTHON_MODULE_PATH)
|
||||
|
||||
if (NOT EXISTS "${CMAKE_INSTALL_PREFIX}/${PYTHON_MODULE_PATH}")
|
||||
### Calculate the python module path (prefer sysconfig, fallback to distutils for compatibility)
|
||||
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "\
|
||||
try:
|
||||
import sysconfig; print(sysconfig.get_path('platlib'))
|
||||
except ImportError:
|
||||
from distutils.sysconfig import get_python_lib; \
|
||||
print(get_python_lib(plat_specific=True, prefix=''))"
|
||||
execute_process(
|
||||
COMMAND ${PYTHON_EXECUTABLE} -c "import sysconfig; print(sysconfig.get_path('platlib', scheme='posix_prefix')[1:])"
|
||||
OUTPUT_VARIABLE PYTHON_MODULE_PATH
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user