]> code.ossystems Code Review - openembedded-core.git/blob
46ab9a11327ee18c7a359db3cc7096b8996c4723
[openembedded-core.git] /
1 From 82bd6d196a0453657cbacaaedd75b2d2fe0bf9ba 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
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 52fc39e..2024407 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 distutils import sysconfig
24 -path=sysconfig.get_python_lib(True, prefix='${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 distutils import sysconfig
30 +#path=sysconfig.get_python_lib(True, prefix='${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}")