diff options
author | Michael Lippautz <michael.lippautz@gmail.com> | 2011-05-11 10:40:17 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-11 16:48:21 +0100 |
commit | 6941efaabe73847eed8f8b428b59d75fa65ee11c (patch) | |
tree | df5a61754c0f9ced35c29941257b1b8b191b8edd /meta/recipes-devtools/python | |
parent | ef768beac277b2fc4932a60885d033c0e9713483 (diff) | |
download | poky-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.bb | 7 |
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 @@ | |||
1 | require python.inc | 1 | require python.inc |
2 | DEPENDS = "openssl-native bzip2-full-native zlib-native readline-native sqlite3-native" | 2 | DEPENDS = "openssl-native bzip2-full-native zlib-native readline-native sqlite3-native" |
3 | PR = "${INC_PR}.0" | 3 | PR = "${INC_PR}.1" |
4 | 4 | ||
5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=38fdd546420fab09ac6bd3d8a1c83eb6" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=38fdd546420fab09ac6bd3d8a1c83eb6" |
6 | 6 | ||
7 | SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \ | 7 | SRC_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 | ||
31 | do_configure_prepend() { | ||
32 | autoreconf --verbose --install --force --exclude=autopoint Modules/_ctypes/libffi || bbnote "_ctypes failed to autoreconf" | ||
33 | } | ||
34 | |||
30 | do_install() { | 35 | do_install() { |
31 | oe_runmake 'DESTDIR=${D}' install | 36 | oe_runmake 'DESTDIR=${D}' install |
32 | install -d ${D}${bindir}/ | 37 | install -d ${D}${bindir}/ |