summaryrefslogtreecommitdiffstats
path: root/meta-extras/packages/python/python-native-2.5.1
diff options
context:
space:
mode:
Diffstat (limited to 'meta-extras/packages/python/python-native-2.5.1')
-rw-r--r--meta-extras/packages/python/python-native-2.5.1/catchup-with-swig.patch13
-rw-r--r--meta-extras/packages/python/python-native-2.5.1/fix-staging.patch38
2 files changed, 51 insertions, 0 deletions
diff --git a/meta-extras/packages/python/python-native-2.5.1/catchup-with-swig.patch b/meta-extras/packages/python/python-native-2.5.1/catchup-with-swig.patch
new file mode 100644
index 0000000000..f049b759f4
--- /dev/null
+++ b/meta-extras/packages/python/python-native-2.5.1/catchup-with-swig.patch
@@ -0,0 +1,13 @@
1Index: Python-2.5.1/Lib/distutils/command/build_ext.py
2===================================================================
3--- Python-2.5.1.orig/Lib/distutils/command/build_ext.py
4+++ Python-2.5.1/Lib/distutils/command/build_ext.py
5@@ -513,7 +513,7 @@ class build_ext (Command):
6 target_lang=language)
7
8
9- def swig_sources (self, sources, extension):
10+ def swig_sources (self, sources, extension=None):
11
12 """Walk the list of source files in 'sources', looking for SWIG
13 interface (.i) files. Run SWIG on all that are found, and
diff --git a/meta-extras/packages/python/python-native-2.5.1/fix-staging.patch b/meta-extras/packages/python/python-native-2.5.1/fix-staging.patch
new file mode 100644
index 0000000000..087c813fd4
--- /dev/null
+++ b/meta-extras/packages/python/python-native-2.5.1/fix-staging.patch
@@ -0,0 +1,38 @@
1---
2 Lib/distutils/sysconfig.py | 10 ++++++++--
3 1 file changed, 8 insertions(+), 2 deletions(-)
4
5--- Python-2.5.1.orig/Lib/distutils/sysconfig.py
6+++ Python-2.5.1/Lib/distutils/sysconfig.py
7@@ -52,11 +52,14 @@ def get_python_inc(plat_specific=0, pref
8
9 If 'prefix' is supplied, use it instead of sys.prefix or
10 sys.exec_prefix -- i.e., ignore 'plat_specific'.
11 """
12 if prefix is None:
13- prefix = plat_specific and EXEC_PREFIX or PREFIX
14+ if plat_specific:
15+ prefix = plat_specific and os.environ['STAGING_INCDIR'].rstrip('include')
16+ else:
17+ prefix = plat_specific and EXEC_PREFIX or PREFIX
18 if os.name == "posix":
19 if python_build:
20 base = os.path.dirname(os.path.abspath(sys.executable))
21 if plat_specific:
22 inc_dir = base
23@@ -94,11 +97,14 @@ def get_python_lib(plat_specific=0, stan
24
25 If 'prefix' is supplied, use it instead of sys.prefix or
26 sys.exec_prefix -- i.e., ignore 'plat_specific'.
27 """
28 if prefix is None:
29- prefix = plat_specific and EXEC_PREFIX or PREFIX
30+ if plat_specific:
31+ prefix = plat_specific and os.environ['STAGING_LIBDIR'].rstrip('lib')
32+ else:
33+ prefix = plat_specific and EXEC_PREFIX or PREFIX
34
35 if os.name == "posix":
36 libpython = os.path.join(prefix,
37 "lib", "python" + get_python_version())
38 if standard_lib: