diff options
| author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
|---|---|---|
| committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
| commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
| tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-devtools/python/python-native_2.7.3.bb | |
| download | poky-c527fd1f14c27855a37f2e8ac5346ce8d940ced2.tar.gz | |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-devtools/python/python-native_2.7.3.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python-native_2.7.3.bb | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-native_2.7.3.bb b/meta/recipes-devtools/python/python-native_2.7.3.bb new file mode 100644 index 0000000000..0c66d27c2d --- /dev/null +++ b/meta/recipes-devtools/python/python-native_2.7.3.bb | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | require python.inc | ||
| 2 | |||
| 3 | EXTRANATIVEPATH += "bzip2-native" | ||
| 4 | DEPENDS = "openssl-native bzip2-replacement-native zlib-native readline-native sqlite3-native" | ||
| 5 | PR = "${INC_PR}.1" | ||
| 6 | |||
| 7 | SRC_URI += "\ | ||
| 8 | file://05-enable-ctypes-cross-build.patch \ | ||
| 9 | file://06-ctypes-libffi-fix-configure.patch \ | ||
| 10 | file://10-distutils-fix-swig-parameter.patch \ | ||
| 11 | file://11-distutils-never-modify-shebang-line.patch \ | ||
| 12 | file://12-distutils-prefix-is-inside-staging-area.patch \ | ||
| 13 | file://debug.patch \ | ||
| 14 | file://unixccompiler.patch \ | ||
| 15 | file://nohostlibs.patch \ | ||
| 16 | file://multilib.patch \ | ||
| 17 | file://add-md5module-support.patch \ | ||
| 18 | file://builddir.patch \ | ||
| 19 | file://parallel-makeinst-create-bindir.patch \ | ||
| 20 | file://python-fix-build-error-with-Readline-6.3.patch \ | ||
| 21 | " | ||
| 22 | S = "${WORKDIR}/Python-${PV}" | ||
| 23 | |||
| 24 | FILESPATH = "${FILE_DIRNAME}/python-native/:${FILE_DIRNAME}/python/" | ||
| 25 | |||
| 26 | inherit native | ||
| 27 | |||
| 28 | RPROVIDES += "python-distutils-native python-compression-native python-textutils-native python-codecs-native python-core-native" | ||
| 29 | |||
| 30 | EXTRA_OECONF_append = " --bindir=${bindir}/${PN}" | ||
| 31 | |||
| 32 | EXTRA_OEMAKE = '\ | ||
| 33 | BUILD_SYS="" \ | ||
| 34 | HOST_SYS="" \ | ||
| 35 | LIBC="" \ | ||
| 36 | STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE} \ | ||
| 37 | STAGING_INCDIR=${STAGING_INCDIR_NATIVE} \ | ||
| 38 | ' | ||
| 39 | |||
| 40 | do_configure_prepend() { | ||
| 41 | autoreconf --verbose --install --force --exclude=autopoint Modules/_ctypes/libffi || bbnote "_ctypes failed to autoreconf" | ||
| 42 | } | ||
| 43 | |||
| 44 | do_install() { | ||
| 45 | oe_runmake 'DESTDIR=${D}' install | ||
| 46 | install -d ${D}${bindir}/${PN} | ||
| 47 | install -m 0755 Parser/pgen ${D}${bindir}/${PN} | ||
| 48 | |||
| 49 | # Make sure we use /usr/bin/env python | ||
| 50 | for PYTHSCRIPT in `grep -rIl ${bindir}/${PN}/python ${D}${bindir}/${PN}`; do | ||
| 51 | sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT | ||
| 52 | done | ||
| 53 | |||
| 54 | # Add a symlink to the native Python so that scripts can just invoke | ||
| 55 | # "nativepython" and get the right one without needing absolute paths | ||
| 56 | # (these often end up too long for the #! parser in the kernel as the | ||
| 57 | # buffer is 128 bytes long). | ||
| 58 | ln -s python-native/python ${D}${bindir}/nativepython | ||
| 59 | } | ||
