summaryrefslogtreecommitdiff
path: root/packages/python/python-native-2.5.1/cross-distutils.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-10-01 12:33:20 +0000
committerKoen Kooi <koen@openembedded.org>2007-10-01 12:33:20 +0000
commitc6a46d9fc00dccc78b3543ee6c5b62f856bc4c86 (patch)
treefa46636f8c4430d89af0ff3559a98d42345bd07c /packages/python/python-native-2.5.1/cross-distutils.patch
parent5aaaaa5942b4a928a34bf3804a3cf8cc302be4f8 (diff)
parent0758358b14b63d166784e5163682f9dc72b49a0e (diff)
merge of 'e7fcaa386e6ece8257005e7222964138b4ee8773'
and 'f68cd62e66ec1f6d24dc3d4588abbc23993878da'
Diffstat (limited to 'packages/python/python-native-2.5.1/cross-distutils.patch')
-rw-r--r--packages/python/python-native-2.5.1/cross-distutils.patch6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/python/python-native-2.5.1/cross-distutils.patch b/packages/python/python-native-2.5.1/cross-distutils.patch
index 76ae883c1d..3356c1abbe 100644
--- a/packages/python/python-native-2.5.1/cross-distutils.patch
+++ b/packages/python/python-native-2.5.1/cross-distutils.patch
@@ -16,22 +16,20 @@
# python_build: (Boolean) if true, we're either building Python or
# building an extension with an un-installed Python, so we use
-@@ -192,7 +192,8 @@
+@@ -192,7 +192,7 @@
else:
# The name of the config.h file changed in 2.2
config_h = 'pyconfig.h'
- return os.path.join(inc_dir, config_h)
-+ print "NOTE: sysconfig.get_config_h_filename() altered for OpenEmbedded"
+ return os.path.join(inc_dir, config_h).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
def get_makefile_filename():
-@@ -200,7 +201,8 @@
+@@ -200,7 +200,7 @@
if python_build:
return os.path.join(os.path.dirname(sys.executable), "Makefile")
lib_dir = get_python_lib(plat_specific=1, standard_lib=1)
- return os.path.join(lib_dir, "config", "Makefile")
-+ print "NOTE: sysconfig.get_config_h_filename() altered for OpenEmbedded"
+ return os.path.join(lib_dir, "config", "Makefile").replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )