]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/blob
4a851ad1e284a8cce64d8a1c489c2cf05cb44a4e
[thirdparty/openembedded/openembedded-core-contrib.git] /
1 From 76052aa40c61580869472fd3f009a4ab1620b998 Mon Sep 17 00:00:00 2001
2 From: Alexander Kanavin <alex.kanavin@gmail.com>
3 Date: Fri, 30 Dec 2016 18:05:36 +0200
4 Subject: [PATCH] Do not try to obtain PYTHON_INSTALL_DIR by running python.
5
6 Upstream-Status: Inappropriate [oe-core specific]
7 Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
9 ---
10 librepo/python/CMakeLists.txt | 12 ++++++------
11 1 file changed, 6 insertions(+), 6 deletions(-)
12
13 diff --git a/librepo/python/CMakeLists.txt b/librepo/python/CMakeLists.txt
14 index 8523ca7..06e5f7b 100644
15 --- a/librepo/python/CMakeLists.txt
16 +++ b/librepo/python/CMakeLists.txt
17 @@ -16,12 +16,12 @@ SET (librepomodule_SRCS
18
19 MESSAGE("Building python bindings")
20
21 -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "
22 -from sys import stdout
23 -from sysconfig import get_path
24 -path=get_path(name='platlib', vars={'platbase':'${CMAKE_INSTALL_PREFIX}'})
25 -stdout.write(path)"
26 -OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
27 +#EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "
28 +#from sys import stdout
29 +#from sysconfig import get_path
30 +#path=get_path(name='platlib', vars={'platbase':'${CMAKE_INSTALL_PREFIX}'})
31 +#stdout.write(path)"
32 +#OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
33 INCLUDE_DIRECTORIES (${PYTHON_INCLUDE_PATH})
34
35 MESSAGE(STATUS "Python3 install dir is ${PYTHON_INSTALL_DIR}")