summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-04-04 12:32:24 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-04-04 12:32:24 +0000
commitf3d9c4b15ac8a63090052f1f9eafc5442f2ad3da (patch)
tree0a2e447441b8c9c2c26719bbe38568e7d3f2f979 /python
parent1f422df11f1903f0e58ae34dcaaad223e998c3f9 (diff)
Merge bk://openembedded@openembedded.bkbits.net/packages
into r2d2.tm.informatik.uni-frankfurt.de:/home/projekte/packages 2004/04/04 03:29:10+02:00 uni-frankfurt.de!mickey add python-pycodes (low density parity check (LDPC) codes). couldn't see the binary modules at first glance - please check 2004/04/04 03:20:36+02:00 uni-frankfurt.de!mickey catch up with the new staging scheme. read individual comments to understand the whole story BKrev: 40700058l_qApKeSZljFtyn8B1KcvA
Diffstat (limited to 'python')
-rw-r--r--python/python-native-2.3.3/cross-distutils.patch8
-rw-r--r--python/python-native_2.3.3.oe2
-rw-r--r--python/python-pycodes-1.1/no-docs.patch0
-rw-r--r--python/python-pycodes_1.1.oe0
-rw-r--r--python/python_2.3.3.oe4
5 files changed, 8 insertions, 6 deletions
diff --git a/python/python-native-2.3.3/cross-distutils.patch b/python/python-native-2.3.3/cross-distutils.patch
index db09de5cb0..76ae883c1d 100644
--- a/python/python-native-2.3.3/cross-distutils.patch
+++ b/python/python-native-2.3.3/cross-distutils.patch
@@ -11,8 +11,8 @@
# These are needed in a couple of spots, so just compute them once.
-PREFIX = os.path.normpath(sys.prefix)
-EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
-+PREFIX = os.path.normpath(sys.prefix).replace( "build", "target" )
-+EXEC_PREFIX = os.path.normpath(sys.exec_prefix).replace( "build", "target" )
++PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
++EXEC_PREFIX = os.path.normpath(sys.exec_prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
# python_build: (Boolean) if true, we're either building Python or
# building an extension with an un-installed Python, so we use
@@ -22,7 +22,7 @@
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( "build", "target" )
++ return os.path.join(inc_dir, config_h).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
def get_makefile_filename():
@@ -32,7 +32,7 @@
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( "build", "target" )
++ return os.path.join(lib_dir, "config", "Makefile").replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
def parse_config_h(fp, g=None):
diff --git a/python/python-native_2.3.3.oe b/python/python-native_2.3.3.oe
index 5c7509aad0..a72e2996db 100644
--- a/python/python-native_2.3.3.oe
+++ b/python/python-native_2.3.3.oe
@@ -12,7 +12,7 @@ S = "${WORKDIR}/Python-${PV}"
inherit autotools native
EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc --with-prefix=${STAGING_DIR} --with-exec-prefix=${STAGING_DIR}/${BUILD_SYS}"
-
+EXTRA_OEMAKE = 'BUILD_SYS="" HOST_SYS=""'
do_configure () {
oe_runconf
}
diff --git a/python/python-pycodes-1.1/no-docs.patch b/python/python-pycodes-1.1/no-docs.patch
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/python/python-pycodes-1.1/no-docs.patch
diff --git a/python/python-pycodes_1.1.oe b/python/python-pycodes_1.1.oe
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/python/python-pycodes_1.1.oe
diff --git a/python/python_2.3.3.oe b/python/python_2.3.3.oe
index 49567ec8d0..04d703f2d0 100644
--- a/python/python_2.3.3.oe
+++ b/python/python_2.3.3.oe
@@ -36,7 +36,9 @@ do_compile_prepend() {
do_compile() {
oe_runmake HOSTPGEN=${STAGING_BINDIR}/pgen \
HOSTPYTHON=${STAGING_BINDIR}/python \
- STAGING_DIR=${STAGING_DIR}
+ STAGING_DIR=${STAGING_DIR} \
+ BUILD_SYS=${BUILD_SYS} \
+ HOST_SYS=${HOST_SYS}
}
do_stage() {