blob: 6cd052889a64814b7cf3b9fb4bdcfdc2b4681126 [file] [log] [blame]
Andrew Geisslerc182c622020-05-15 14:13:32 -05001From 32447a79e24f8e7e9e0150eb747f34116d63ef38 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 Geisslerc182c622020-05-15 14:13:32 -05004Subject: [PATCH 2/2] 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>
8---
Andrew Geissler82c905d2020-04-13 13:39:40 -05009 libcomps/src/python/src/CMakeLists.txt | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050011
Andrew Geissler82c905d2020-04-13 13:39:40 -050012diff --git a/libcomps/src/python/src/CMakeLists.txt b/libcomps/src/python/src/CMakeLists.txt
Andrew Geissler09036742021-06-25 14:25:14 -050013index f813af4..9eebb6c 100644
Andrew Geissler82c905d2020-04-13 13:39:40 -050014--- a/libcomps/src/python/src/CMakeLists.txt
15+++ b/libcomps/src/python/src/CMakeLists.txt
Andrew Geissler09036742021-06-25 14:25:14 -050016@@ -85,7 +85,7 @@ IF (SKBUILD)
Andrew Geissler82c905d2020-04-13 13:39:40 -050017 INSTALL(FILES libcomps/__init__.py DESTINATION libcomps/src/python/src/libcomps)
18 INSTALL(TARGETS pycomps LIBRARY DESTINATION libcomps/src/python/src/libcomps)
19 ELSE ()
Andrew Geissler09036742021-06-25 14:25:14 -050020- EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from sysconfig import get_path; stdout.write(get_path('platlib'))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
21+ #EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from sysconfig import get_path; stdout.write(get_path('platlib'))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022
Andrew Geissler82c905d2020-04-13 13:39:40 -050023 INSTALL(FILES ${pycomps_SRCDIR}/libcomps/__init__.py DESTINATION ${PYTHON_INSTALL_DIR}/libcomps)
24 #INSTALL(FILES ${pycomps_SRCDIR}/tests/__test.py DESTINATION
Andrew Geisslerc182c622020-05-15 14:13:32 -050025--
Andrew Geissler09036742021-06-25 14:25:14 -0500262.25.1
Andrew Geisslerc182c622020-05-15 14:13:32 -050027