summaryrefslogtreecommitdiff
path: root/pkgs/tools/package-management/createrepo_c/fix-python-install-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/package-management/createrepo_c/fix-python-install-path.patch')
-rw-r--r--pkgs/tools/package-management/createrepo_c/fix-python-install-path.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/tools/package-management/createrepo_c/fix-python-install-path.patch b/pkgs/tools/package-management/createrepo_c/fix-python-install-path.patch
index a247c6d9fe47..b8739622e3c0 100644
--- a/pkgs/tools/package-management/createrepo_c/fix-python-install-path.patch
+++ b/pkgs/tools/package-management/createrepo_c/fix-python-install-path.patch
@@ -1,11 +1,11 @@
---- createrepo_c-0.10.0-src.orig/src/python/CMakeLists.txt 2017-03-19 10:50:33.796342953 +0100
-+++ createrepo_c-0.10.0-src/src/python/CMakeLists.txt 2017-03-19 10:53:51.207580073 +0100
-@@ -19,7 +19,7 @@
- FIND_PACKAGE(PythonInterp 3.0 REQUIRED)
- endif()
-
+--- a/src/python/CMakeLists.txt
++++ b/src/python/CMakeLists.txt
+@@ -14,7 +14,7 @@ if (NOT SKBUILD)
+ FIND_PACKAGE(PythonLibs 3 REQUIRED)
+ endif (NOT SKBUILD)
+
-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib(True))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
+SET(PYTHON_INSTALL_DIR "@PYTHON_INSTALL_DIR@")
INCLUDE_DIRECTORIES (${PYTHON_INCLUDE_PATH})
-
+
MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}")