mirror of
https://git.yoctoproject.org/poky
synced 2026-03-30 17:02:22 +02:00
(From OE-Core rev: ccff8acaff0f31211653128d7e22ba7a8ddcb185) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
26 lines
1.4 KiB
Diff
26 lines
1.4 KiB
Diff
From b28859ea93110d52d8a87d7b5a6c8796d0d523ed Mon Sep 17 00:00:00 2001
|
|
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
Date: Fri, 30 Dec 2016 18:22:09 +0200
|
|
Subject: [PATCH] Do not set PYTHON_INSTALL_DIR by running python.
|
|
|
|
Upstream-Status: Inappropriate [oe-core specific]
|
|
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
|
|
---
|
|
libcomps/src/python/src/CMakeLists.txt | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libcomps/src/python/src/CMakeLists.txt b/libcomps/src/python/src/CMakeLists.txt
|
|
index fa590ae..6913214 100644
|
|
--- a/libcomps/src/python/src/CMakeLists.txt
|
|
+++ b/libcomps/src/python/src/CMakeLists.txt
|
|
@@ -117,7 +117,7 @@ IF (SKBUILD)
|
|
INSTALL(FILES libcomps/__init__.py DESTINATION libcomps/src/python/src/libcomps)
|
|
INSTALL(TARGETS pycomps LIBRARY DESTINATION libcomps/src/python/src/libcomps)
|
|
ELSE ()
|
|
- 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)
|
|
+ #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)
|
|
|
|
INSTALL(FILES ${pycomps_SRCDIR}/libcomps/__init__.py DESTINATION ${PYTHON_INSTALL_DIR}/libcomps)
|
|
#INSTALL(FILES ${pycomps_SRCDIR}/tests/__test.py DESTINATION
|