blob: c0f07fe2ca0225dc11e01614e1bcdf4e18d83457 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From 4644d18157296257284bedd857f4610f1037d50e 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:31:02 +0200
4Subject: [PATCH] Do not set PYTHON_INSTALL_DIR by running python
5
6Upstream-Status: Inappropriate [oe-core specific]
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Brad Bishop19323692019-04-05 15:28:33 -04008
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009---
10 src/python/CMakeLists.txt | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt
Brad Bishop19323692019-04-05 15:28:33 -040014index 3d873f7..e977b2f 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050015--- a/src/python/CMakeLists.txt
16+++ b/src/python/CMakeLists.txt
Brad Bishop19323692019-04-05 15:28:33 -040017@@ -21,7 +21,7 @@ if (NOT SKBUILD)
18 endif ()
19 endif (NOT SKBUILD)
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(True))" 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(True))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
23 INCLUDE_DIRECTORIES (${PYTHON_INCLUDE_PATH})
24
25 MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}")