diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3/python-config.patch')
-rw-r--r-- | meta/recipes-devtools/python/python3/python-config.patch | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/meta/recipes-devtools/python/python3/python-config.patch b/meta/recipes-devtools/python/python3/python-config.patch deleted file mode 100644 index 4da399e46e..0000000000 --- a/meta/recipes-devtools/python/python3/python-config.patch +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | From 8632f25ac4e2c53a3c2c8a1b4fc97fc86e8aad5a Mon Sep 17 00:00:00 2001 | ||
2 | From: Tyler Hall <tylerwhall@gmail.com> | ||
3 | Date: Sun, 4 May 2014 20:06:43 -0400 | ||
4 | Subject: [PATCH] python-config: Revert to using distutils.sysconfig | ||
5 | |||
6 | The newer sysconfig module shares some code with distutils.sysconfig, but the same modifications as in | ||
7 | |||
8 | 12-distutils-prefix-is-inside-staging-area.patch makes distutils.sysconfig | ||
9 | |||
10 | affect the native runtime as well as cross building. Use the old, patched | ||
11 | implementation which returns paths in the staging directory and for the target, | ||
12 | as appropriate. | ||
13 | |||
14 | Upstream-Status: Inappropriate [Embedded Specific] | ||
15 | |||
16 | Signed-off-by: Tyler Hall <tylerwhall@gmail.com> | ||
17 | |||
18 | --- | ||
19 | Misc/python-config.in | 12 +++++++----- | ||
20 | 1 file changed, 7 insertions(+), 5 deletions(-) | ||
21 | |||
22 | diff --git a/Misc/python-config.in b/Misc/python-config.in | ||
23 | index ebd99da..0492e08 100644 | ||
24 | --- a/Misc/python-config.in | ||
25 | +++ b/Misc/python-config.in | ||
26 | @@ -6,7 +6,9 @@ | ||
27 | import getopt | ||
28 | import os | ||
29 | import sys | ||
30 | -import sysconfig | ||
31 | +import warnings | ||
32 | +warnings.filterwarnings("ignore", category=DeprecationWarning) | ||
33 | +from distutils import sysconfig | ||
34 | |||
35 | valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', | ||
36 | 'ldflags', 'extension-suffix', 'help', 'abiflags', 'configdir', | ||
37 | @@ -35,14 +37,14 @@ if '--help' in opt_flags: | ||
38 | |||
39 | for opt in opt_flags: | ||
40 | if opt == '--prefix': | ||
41 | - print(getvar('prefix')) | ||
42 | + print(sysconfig.PREFIX) | ||
43 | |||
44 | elif opt == '--exec-prefix': | ||
45 | - print(getvar('exec_prefix')) | ||
46 | + print(sysconfig.EXEC_PREFIX) | ||
47 | |||
48 | elif opt in ('--includes', '--cflags'): | ||
49 | - flags = ['-I' + sysconfig.get_path('include'), | ||
50 | - '-I' + sysconfig.get_path('platinclude')] | ||
51 | + flags = ['-I' + sysconfig.get_python_inc(), | ||
52 | + '-I' + sysconfig.get_python_inc(plat_specific=True)] | ||
53 | if opt == '--cflags': | ||
54 | flags.extend(getvar('CFLAGS').split()) | ||
55 | print(' '.join(flags)) | ||