mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

Drop 0001-Do-not-hardcode-lib-as-location-for-site-packages-an.patch, 0001-configure.ac-fix-LIBPL.patch and 0001-python3-Do-not-hardcode-lib-for-distutils.patch as they are all replaced by the new --platlibdir option to ./configure Rename 0001-Lib-sysconfig.py-fix-another-place-where-lib-is-hard.patch to 0001-Lib-sysconfig.py-use-libdir-values-from-configuratio.patch and describe the changes better. License-Update: documentation now dual license under PSF & BSD (not relevant for the recipe. (From OE-Core rev: 7347556b18b45c5f9afc2cade565a75c95876914) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
55 lines
1.8 KiB
Diff
55 lines
1.8 KiB
Diff
From 57d073c12e7bede29919117b0141df14015eb27f Mon Sep 17 00:00:00 2001
|
|
From: Tyler Hall <tylerwhall@gmail.com>
|
|
Date: Sun, 4 May 2014 20:06:43 -0400
|
|
Subject: [PATCH] python-config: Revert to using distutils.sysconfig
|
|
|
|
The newer sysconfig module shares some code with distutils.sysconfig, but the same modifications as in
|
|
|
|
12-distutils-prefix-is-inside-staging-area.patch makes distutils.sysconfig
|
|
|
|
affect the native runtime as well as cross building. Use the old, patched
|
|
implementation which returns paths in the staging directory and for the target,
|
|
as appropriate.
|
|
|
|
Upstream-Status: Inappropriate [Embedded Specific]
|
|
|
|
Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
|
|
:
|
|
|
|
---
|
|
Misc/python-config.in | 10 +++++-----
|
|
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/Misc/python-config.in b/Misc/python-config.in
|
|
index ebd99da..13e57ae 100644
|
|
--- a/Misc/python-config.in
|
|
+++ b/Misc/python-config.in
|
|
@@ -6,7 +6,7 @@
|
|
import getopt
|
|
import os
|
|
import sys
|
|
-import sysconfig
|
|
+from distutils import sysconfig
|
|
|
|
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
|
|
'ldflags', 'extension-suffix', 'help', 'abiflags', 'configdir',
|
|
@@ -35,14 +35,14 @@ if '--help' in opt_flags:
|
|
|
|
for opt in opt_flags:
|
|
if opt == '--prefix':
|
|
- print(getvar('prefix'))
|
|
+ print(sysconfig.PREFIX)
|
|
|
|
elif opt == '--exec-prefix':
|
|
- print(getvar('exec_prefix'))
|
|
+ print(sysconfig.EXEC_PREFIX)
|
|
|
|
elif opt in ('--includes', '--cflags'):
|
|
- flags = ['-I' + sysconfig.get_path('include'),
|
|
- '-I' + sysconfig.get_path('platinclude')]
|
|
+ flags = ['-I' + sysconfig.get_python_inc(),
|
|
+ '-I' + sysconfig.get_python_inc(plat_specific=True)]
|
|
if opt == '--cflags':
|
|
flags.extend(getvar('CFLAGS').split())
|
|
print(' '.join(flags))
|