1
0
forked from pool/mapserver
mapserver/mapserver-7.6.1-fix_python_install_path.patch

19 lines
913 B
Diff

# PATCH-FIX-UPSTREAM mapserver-7.6.1-fix_python_install_path.patch fixing python installation path badly defaulting to arch independent location
There is a _mapserver.so file, which means the installation has to happen to sitearch.
This patch makes it so (i.e. installation to /usr/lib64/python... rather than
/usr/lib/python...)
diff -Nur mapserver-7.6.3/mapscript/python/CMakeLists.txt new/mapscript/python/CMakeLists.txt
--- mapserver-7.6.3/mapscript/python/CMakeLists.txt 2021-04-30 23:26:25.000000000 +0200
+++ new/mapscript/python/CMakeLists.txt 2021-05-31 20:53:16.269084059 +0200
@@ -146,7 +146,7 @@
endif()
execute_process(
- COMMAND ${PYTHON_EXECUTABLE} setup.py install \${PYTHON_ROOT} \${PYTHON_PREFIX}
+ COMMAND ${PYTHON_EXECUTABLE} setup.py install --install-lib=${PYTHON_SITE_PACKAGES} \${PYTHON_ROOT} \${PYTHON_PREFIX}
WORKING_DIRECTORY ${OUTPUT_FOLDER}
)
"