blob: 4b844574eaa18e8b1762c62c53051e1035b1c6a1 [file] [log] [blame]
William A. Kennington IIIac69b482021-06-02 12:28:27 -07001From 6f8f6d151b831b60f6e7892aa9294a6361353c72 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
William A. Kennington IIIac69b482021-06-02 12:28:27 -070014index ecc262d..a86514c 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050015--- a/src/python/CMakeLists.txt
16+++ b/src/python/CMakeLists.txt
Andrew Geissler9b4d8b02021-02-19 12:26:16 -060017@@ -14,7 +14,7 @@ if (NOT SKBUILD)
William A. Kennington IIIac69b482021-06-02 12:28:27 -070018 FIND_PACKAGE(PythonLibs 3 REQUIRED)
Brad Bishop19323692019-04-05 15:28:33 -040019 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}")