blob: 6e011915df0908fcf6c06188e463502b54b2922c [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From 7205033e44d8fba1d3b18b490e7eaab82da1ffa3 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 Bishop316dfdd2018-06-25 12:45:53 -04004Subject: [PATCH 1/5] 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 Bishop316dfdd2018-06-25 12:45:53 -040014index 23e5f889..650b624a 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050015--- a/CMakeLists.txt
16+++ b/CMakeLists.txt
17@@ -18,7 +18,7 @@ else()
18 FIND_PACKAGE(PythonInterp 3.0 REQUIRED)
19 endif()
20
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)
23 EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; sys.stdout.write('%s.%s' % (sys.version_info.major, sys.version_info.minor))" OUTPUT_VARIABLE PYTHON_MAJOR_DOT_MINOR_VERSION)
24 MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}")
25
26--
Brad Bishop316dfdd2018-06-25 12:45:53 -0400272.14.2
Brad Bishop6e60e8b2018-02-01 10:27:11 -050028