diff options
Diffstat (limited to 'meta/recipes-devtools/librepo/librepo/0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch')
-rw-r--r-- | meta/recipes-devtools/librepo/librepo/0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch | 48 |
1 files changed, 15 insertions, 33 deletions
diff --git a/meta/recipes-devtools/librepo/librepo/0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch b/meta/recipes-devtools/librepo/librepo/0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch index b61f0c9324..4a851ad1e2 100644 --- a/meta/recipes-devtools/librepo/librepo/0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch +++ b/meta/recipes-devtools/librepo/librepo/0002-Do-not-try-to-obtain-PYTHON_INSTALL_DIR-by-running-p.patch | |||
@@ -1,51 +1,33 @@ | |||
1 | From b08a3b71e716dd0485ef51036d32e4c304fb4e67 Mon Sep 17 00:00:00 2001 | 1 | From 76052aa40c61580869472fd3f009a4ab1620b998 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Fri, 30 Dec 2016 18:05:36 +0200 | 3 | Date: Fri, 30 Dec 2016 18:05:36 +0200 |
4 | Subject: [PATCH] Do not try to obtain PYTHON_INSTALL_DIR by running python. | 4 | Subject: [PATCH] Do not try to obtain PYTHON_INSTALL_DIR by running python. |
5 | 5 | ||
6 | Upstream-Status: Inappropriate [oe-core specific] | 6 | Upstream-Status: Inappropriate [oe-core specific] |
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
8 | 8 | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> | |
9 | --- | 9 | --- |
10 | librepo/python/python2/CMakeLists.txt | 12 ++++++------ | 10 | librepo/python/CMakeLists.txt | 12 ++++++------ |
11 | librepo/python/python3/CMakeLists.txt | 12 ++++++------ | 11 | 1 file changed, 6 insertions(+), 6 deletions(-) |
12 | 2 files changed, 12 insertions(+), 12 deletions(-) | ||
13 | 12 | ||
14 | diff --git a/librepo/python/python2/CMakeLists.txt b/librepo/python/python2/CMakeLists.txt | 13 | diff --git a/librepo/python/CMakeLists.txt b/librepo/python/CMakeLists.txt |
15 | index a0f1f9a..1665079 100644 | 14 | index 8523ca7..06e5f7b 100644 |
16 | --- a/librepo/python/python2/CMakeLists.txt | 15 | --- a/librepo/python/CMakeLists.txt |
17 | +++ b/librepo/python/python2/CMakeLists.txt | 16 | +++ b/librepo/python/CMakeLists.txt |
18 | @@ -1,9 +1,9 @@ | 17 | @@ -16,12 +16,12 @@ SET (librepomodule_SRCS |
19 | -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c " | 18 | |
20 | -from sys import stdout | 19 | MESSAGE("Building python bindings") |
21 | -from distutils import sysconfig | ||
22 | -path=sysconfig.get_python_lib(True, prefix='${CMAKE_INSTALL_PREFIX}') | ||
23 | -stdout.write(path)" | ||
24 | -OUTPUT_VARIABLE PYTHON_INSTALL_DIR) | ||
25 | +#EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c " | ||
26 | +#from sys import stdout | ||
27 | +#from distutils import sysconfig | ||
28 | +#path=sysconfig.get_python_lib(True, prefix='${CMAKE_INSTALL_PREFIX}') | ||
29 | +#stdout.write(path)" | ||
30 | +#OUTPUT_VARIABLE PYTHON_INSTALL_DIR) | ||
31 | INCLUDE_DIRECTORIES (${PYTHON_INCLUDE_PATH}) | ||
32 | 20 | ||
33 | MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}") | ||
34 | diff --git a/librepo/python/python3/CMakeLists.txt b/librepo/python/python3/CMakeLists.txt | ||
35 | index 52ba44e..da51e10 100644 | ||
36 | --- a/librepo/python/python3/CMakeLists.txt | ||
37 | +++ b/librepo/python/python3/CMakeLists.txt | ||
38 | @@ -1,9 +1,9 @@ | ||
39 | -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c " | 21 | -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c " |
40 | -from sys import stdout | 22 | -from sys import stdout |
41 | -from distutils import sysconfig | 23 | -from sysconfig import get_path |
42 | -path=sysconfig.get_python_lib(True, prefix='${CMAKE_INSTALL_PREFIX}') | 24 | -path=get_path(name='platlib', vars={'platbase':'${CMAKE_INSTALL_PREFIX}'}) |
43 | -stdout.write(path)" | 25 | -stdout.write(path)" |
44 | -OUTPUT_VARIABLE PYTHON_INSTALL_DIR) | 26 | -OUTPUT_VARIABLE PYTHON_INSTALL_DIR) |
45 | +#EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c " | 27 | +#EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c " |
46 | +#from sys import stdout | 28 | +#from sys import stdout |
47 | +#from distutils import sysconfig | 29 | +#from sysconfig import get_path |
48 | +#path=sysconfig.get_python_lib(True, prefix='${CMAKE_INSTALL_PREFIX}') | 30 | +#path=get_path(name='platlib', vars={'platbase':'${CMAKE_INSTALL_PREFIX}'}) |
49 | +#stdout.write(path)" | 31 | +#stdout.write(path)" |
50 | +#OUTPUT_VARIABLE PYTHON_INSTALL_DIR) | 32 | +#OUTPUT_VARIABLE PYTHON_INSTALL_DIR) |
51 | INCLUDE_DIRECTORIES (${PYTHON_INCLUDE_PATH}) | 33 | INCLUDE_DIRECTORIES (${PYTHON_INCLUDE_PATH}) |