summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorMichael Lippautz <michael.lippautz@gmail.com>2011-05-11 10:40:17 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-11 16:48:21 +0100
commit6941efaabe73847eed8f8b428b59d75fa65ee11c (patch)
treedf5a61754c0f9ced35c29941257b1b8b191b8edd /meta/recipes-devtools/python
parentef768beac277b2fc4932a60885d033c0e9713483 (diff)
downloadpoky-6941efaabe73847eed8f8b428b59d75fa65ee11c.tar.gz
python-native: Add ctypes patch to native build (as in cross-compilation)
This fix makes ctypes build for python-native which may be needed by extensions that utilize ctypes and use setuptools/distutils as their build system. Tested building pyudev for beagleboard target using Ângstrom distro. (From OE-Core rev: 58f8eb15eea892b2694478bbc71e8c907014509b) Signed-off-by: Michael Lippautz <michael.lippautz@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python-native_2.6.6.bb7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python-native_2.6.6.bb b/meta/recipes-devtools/python/python-native_2.6.6.bb
index 11956a400e..0f9ae10e5a 100644
--- a/meta/recipes-devtools/python/python-native_2.6.6.bb
+++ b/meta/recipes-devtools/python/python-native_2.6.6.bb
@@ -1,12 +1,13 @@
1require python.inc 1require python.inc
2DEPENDS = "openssl-native bzip2-full-native zlib-native readline-native sqlite3-native" 2DEPENDS = "openssl-native bzip2-full-native zlib-native readline-native sqlite3-native"
3PR = "${INC_PR}.0" 3PR = "${INC_PR}.1"
4 4
5LIC_FILES_CHKSUM = "file://LICENSE;md5=38fdd546420fab09ac6bd3d8a1c83eb6" 5LIC_FILES_CHKSUM = "file://LICENSE;md5=38fdd546420fab09ac6bd3d8a1c83eb6"
6 6
7SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \ 7SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \
8 file://04-default-is-optimized.patch \ 8 file://04-default-is-optimized.patch \
9 file://05-enable-ctypes-cross-build.patch \ 9 file://05-enable-ctypes-cross-build.patch \
10 file://06-ctypes-libffi-fix-configure.patch \
10 file://10-distutils-fix-swig-parameter.patch \ 11 file://10-distutils-fix-swig-parameter.patch \
11 file://11-distutils-never-modify-shebang-line.patch \ 12 file://11-distutils-never-modify-shebang-line.patch \
12 file://12-distutils-prefix-is-inside-staging-area.patch \ 13 file://12-distutils-prefix-is-inside-staging-area.patch \
@@ -27,6 +28,10 @@ EXTRA_OEMAKE = '\
27 STAGING_INCDIR=${STAGING_INCDIR_NATIVE} \ 28 STAGING_INCDIR=${STAGING_INCDIR_NATIVE} \
28' 29'
29 30
31do_configure_prepend() {
32 autoreconf --verbose --install --force --exclude=autopoint Modules/_ctypes/libffi || bbnote "_ctypes failed to autoreconf"
33}
34
30do_install() { 35do_install() {
31 oe_runmake 'DESTDIR=${D}' install 36 oe_runmake 'DESTDIR=${D}' install
32 install -d ${D}${bindir}/ 37 install -d ${D}${bindir}/