summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2011-07-18 09:19:07 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-07-21 10:59:18 +0100
commit198581ffddb2e2e1f428dc1784dd4506f55fc7ee (patch)
treee90e1889025283a2904ec0e79ed762e6eca46514
parent29ea036ea6797973f7cc354b4944a470b65fe197 (diff)
downloadpoky-198581ffddb2e2e1f428dc1784dd4506f55fc7ee.tar.gz
python-native: Mangle scripts to use /usr/bin/env python, bump PR
This is dd33ced4b8123600efa1f67f704aec13b0842ad1 in oe.dev and needed for building in deep paths. (From OE-Core rev: 339d039a9b2f0e97f25781ccf6937f1050d83989) Signed-off-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/python/python-native_2.6.6.bb5
1 files changed, 5 insertions, 0 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 fa943f4633..59ed61a67a 100644
--- a/meta/recipes-devtools/python/python-native_2.6.6.bb
+++ b/meta/recipes-devtools/python/python-native_2.6.6.bb
@@ -36,4 +36,9 @@ do_install() {
36 oe_runmake 'DESTDIR=${D}' install 36 oe_runmake 'DESTDIR=${D}' install
37 install -d ${D}${bindir}/ 37 install -d ${D}${bindir}/
38 install -m 0755 Parser/pgen ${D}${bindir}/ 38 install -m 0755 Parser/pgen ${D}${bindir}/
39
40 # Make sure we use /usr/bin/env python
41 for PYTHSCRIPT in `grep -rIl ${bindir}/python ${D}${bindir}`; do
42 sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT
43 done
39} 44}