summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorMorgan Little <morgan.little@windriver.com>2012-07-19 13:46:06 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-22 11:42:20 +0100
commit093ed41b0f0d89cb6344acdf6bb62cb9ca597f2f (patch)
tree56d957638ae1769a111c9bb178cada565d8c9740 /meta/recipes-devtools/python
parent5bdd9988d9e64814191fb7480d6a4c1355b019cc (diff)
downloadast2050-yocto-poky-093ed41b0f0d89cb6344acdf6bb62cb9ca597f2f.zip
ast2050-yocto-poky-093ed41b0f0d89cb6344acdf6bb62cb9ca597f2f.tar.gz
python-native: Put binaries in seperate directory
Update python-native to install the binaries in the python-native directory, add pythonnative.bbclass to let recipes that need python-native use the binaries and update disutils access the new binaries. Update distutils-base to inherit pythonnative. (From OE-Core rev: a2e554f731437545e9483a7a73e6847c03f6f48a) 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.7.3.bb10
1 files changed, 6 insertions, 4 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
index 50bf894..bfdcd12 100644
--- a/meta/recipes-devtools/python/python-native_2.7.3.bb
+++ b/meta/recipes-devtools/python/python-native_2.7.3.bb
@@ -1,6 +1,6 @@
require python.inc
DEPENDS = "openssl-native bzip2-full-native zlib-native readline-native sqlite3-native"
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
SRC_URI += "file://04-default-is-optimized.patch \
file://05-enable-ctypes-cross-build.patch \
@@ -20,6 +20,8 @@ inherit native
RPROVIDES += "python-distutils-native python-compression-native python-textutils-native python-core-native"
+EXTRA_OECONF += " --bindir=${bindir}/${PN}"
+
EXTRA_OEMAKE = '\
BUILD_SYS="" \
HOST_SYS="" \
@@ -34,11 +36,11 @@ do_configure_prepend() {
do_install() {
oe_runmake 'DESTDIR=${D}' install
- install -d ${D}${bindir}/
- install -m 0755 Parser/pgen ${D}${bindir}/
+ install -d ${D}${bindir}/${PN}
+ install -m 0755 Parser/pgen ${D}${bindir}/${PN}
# Make sure we use /usr/bin/env python
- for PYTHSCRIPT in `grep -rIl ${bindir}/python ${D}${bindir}`; do
+ for PYTHSCRIPT in `grep -rIl ${bindir}/${PN}/python ${D}${bindir}/${PN}`; do
sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT
done
}
OpenPOWER on IntegriCloud