blob: 0ed9afc58d29e355ce7ebf726835c0b1b5f131e7 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From 6be13143a54c79085d400d5bd4c7a6e1cb6ffaf5 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:29:07 +0200
Brad Bishop19323692019-04-05 15:28:33 -04004Subject: [PATCH] Do not set 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>
Brad Bishop316dfdd2018-06-25 12:45:53 -04008
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009---
10 CMakeLists.txt | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/CMakeLists.txt b/CMakeLists.txt
Brad Bishop19323692019-04-05 15:28:33 -040014index 38cf4fbf..6c5debd8 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050015--- a/CMakeLists.txt
16+++ b/CMakeLists.txt
Brad Bishop19323692019-04-05 15:28:33 -040017@@ -19,7 +19,7 @@ ELSE ()
18 MESSAGE (FATAL_ERROR "Invalid PYTHON_DESIRED value: " ${PYTHON_DESIRED})
19 ENDIF()
Brad Bishop6e60e8b2018-02-01 10:27:11 -050020
21-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib())" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
22+#EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib())" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050023 MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}")
24
Brad Bishop19323692019-04-05 15:28:33 -040025 ADD_SUBDIRECTORY (dnf)