summaryrefslogtreecommitdiff
path: root/packages/python/python-native-2.5.1
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-10-02 11:26:22 +0000
committerKoen Kooi <koen@openembedded.org>2008-10-02 11:26:22 +0000
commit5409a0e65ec89118622d9c8b85ae81bd4eeea01d (patch)
tree7dbdd9584a20ba14bcc8d6e81e3b147865890998 /packages/python/python-native-2.5.1
parent0d2076ed8e2a9566573bc16db2ada8a01fa1db29 (diff)
parente2811fa331c29f91a088bee958ce483d92464b6d (diff)
merge of '23575cb366ac6706d85f4cc91b22f06ce1e10a0d'
and 'd6babd021e3bde4e1d827d07c1af7154a6569ab7'
Diffstat (limited to 'packages/python/python-native-2.5.1')
-rw-r--r--packages/python/python-native-2.5.1/fix-staging.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/packages/python/python-native-2.5.1/fix-staging.patch b/packages/python/python-native-2.5.1/fix-staging.patch
new file mode 100644
index 0000000000..087c813fd4
--- /dev/null
+++ b/packages/python/python-native-2.5.1/fix-staging.patch
@@ -0,0 +1,38 @@
+---
+ Lib/distutils/sysconfig.py | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+--- Python-2.5.1.orig/Lib/distutils/sysconfig.py
++++ Python-2.5.1/Lib/distutils/sysconfig.py
+@@ -52,11 +52,14 @@ def get_python_inc(plat_specific=0, pref
+
+ If 'prefix' is supplied, use it instead of sys.prefix or
+ sys.exec_prefix -- i.e., ignore 'plat_specific'.
+ """
+ if prefix is None:
+- prefix = plat_specific and EXEC_PREFIX or PREFIX
++ if plat_specific:
++ prefix = plat_specific and os.environ['STAGING_INCDIR'].rstrip('include')
++ else:
++ prefix = plat_specific and EXEC_PREFIX or PREFIX
+ if os.name == "posix":
+ if python_build:
+ base = os.path.dirname(os.path.abspath(sys.executable))
+ if plat_specific:
+ inc_dir = base
+@@ -94,11 +97,14 @@ def get_python_lib(plat_specific=0, stan
+
+ If 'prefix' is supplied, use it instead of sys.prefix or
+ sys.exec_prefix -- i.e., ignore 'plat_specific'.
+ """
+ if prefix is None:
+- prefix = plat_specific and EXEC_PREFIX or PREFIX
++ if plat_specific:
++ prefix = plat_specific and os.environ['STAGING_LIBDIR'].rstrip('lib')
++ else:
++ prefix = plat_specific and EXEC_PREFIX or PREFIX
+
+ if os.name == "posix":
+ libpython = os.path.join(prefix,
+ "lib", "python" + get_python_version())
+ if standard_lib: