blob: 59c09aa70a1de38d1d54baa3ec1c24d028ed81ce [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001From b28859ea93110d52d8a87d7b5a6c8796d0d523ed 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:22:09 +0200
Andrew Geissler82c905d2020-04-13 13:39:40 -05004Subject: [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>
Andrew Geissler82c905d2020-04-13 13:39:40 -05008
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009---
Andrew Geissler82c905d2020-04-13 13:39:40 -050010 libcomps/src/python/src/CMakeLists.txt | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012
Andrew Geissler82c905d2020-04-13 13:39:40 -050013diff --git a/libcomps/src/python/src/CMakeLists.txt b/libcomps/src/python/src/CMakeLists.txt
14index fa590ae..6913214 100644
15--- a/libcomps/src/python/src/CMakeLists.txt
16+++ b/libcomps/src/python/src/CMakeLists.txt
17@@ -117,7 +117,7 @@ IF (SKBUILD)
18 INSTALL(FILES libcomps/__init__.py DESTINATION libcomps/src/python/src/libcomps)
19 INSTALL(TARGETS pycomps LIBRARY DESTINATION libcomps/src/python/src/libcomps)
20 ELSE ()
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)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050023
Andrew Geissler82c905d2020-04-13 13:39:40 -050024 INSTALL(FILES ${pycomps_SRCDIR}/libcomps/__init__.py DESTINATION ${PYTHON_INSTALL_DIR}/libcomps)
25 #INSTALL(FILES ${pycomps_SRCDIR}/tests/__test.py DESTINATION