blob: 2ea50f00ffdc58c05d76248574716666d9c94418 [file] [log] [blame]
Andrew Geissler95ac1b82021-03-31 14:34:31 -05001From 82bd6d196a0453657cbacaaedd75b2d2fe0bf9ba Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 30 Dec 2016 18:05:36 +0200
Brad Bishop19323692019-04-05 15:28:33 -04004Subject: [PATCH] Do not try to obtain PYTHON_INSTALL_DIR by running python.
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005
6Upstream-Status: Inappropriate [oe-core specific]
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Andrew Geissler09036742021-06-25 14:25:14 -05008Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009---
Andrew Geissler95ac1b82021-03-31 14:34:31 -050010 librepo/python/CMakeLists.txt | 12 ++++++------
11 1 file changed, 6 insertions(+), 6 deletions(-)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012
Andrew Geissler95ac1b82021-03-31 14:34:31 -050013diff --git a/librepo/python/CMakeLists.txt b/librepo/python/CMakeLists.txt
Andrew Geissler09036742021-06-25 14:25:14 -050014index 8523ca7..06e5f7b 100644
Andrew Geissler95ac1b82021-03-31 14:34:31 -050015--- a/librepo/python/CMakeLists.txt
16+++ b/librepo/python/CMakeLists.txt
17@@ -16,12 +16,12 @@ SET (librepomodule_SRCS
Brad Bishop6e60e8b2018-02-01 10:27:11 -050018
Andrew Geissler95ac1b82021-03-31 14:34:31 -050019 MESSAGE("Building python bindings")
20
Brad Bishop316dfdd2018-06-25 12:45:53 -040021-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "
22-from sys import stdout
Andrew Geissler09036742021-06-25 14:25:14 -050023-from sysconfig import get_path
24-path=get_path(name='platlib', vars={'platbase':'${CMAKE_INSTALL_PREFIX}'})
Brad Bishop316dfdd2018-06-25 12:45:53 -040025-stdout.write(path)"
26-OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
27+#EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "
28+#from sys import stdout
Andrew Geissler09036742021-06-25 14:25:14 -050029+#from sysconfig import get_path
30+#path=get_path(name='platlib', vars={'platbase':'${CMAKE_INSTALL_PREFIX}'})
Brad Bishop316dfdd2018-06-25 12:45:53 -040031+#stdout.write(path)"
32+#OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050033 INCLUDE_DIRECTORIES (${PYTHON_INCLUDE_PATH})
34
35 MESSAGE(STATUS "Python3 install dir is ${PYTHON_INSTALL_DIR}")
Andrew Geissler09036742021-06-25 14:25:14 -050036--
372.25.1
38