diff options
Diffstat (limited to 'meta/recipes-devtools/python/python-native_2.6.6.bb')
-rw-r--r-- | meta/recipes-devtools/python/python-native_2.6.6.bb | 5 |
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 | } |