diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/python/python-native_2.7.3.bb | 6 |
1 files changed, 6 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 index 722d92c096..39d53bb03c 100644 --- a/meta/recipes-devtools/python/python-native_2.7.3.bb +++ b/meta/recipes-devtools/python/python-native_2.7.3.bb | |||
@@ -48,4 +48,10 @@ do_install() { | |||
48 | for PYTHSCRIPT in `grep -rIl ${bindir}/${PN}/python ${D}${bindir}/${PN}`; do | 48 | for PYTHSCRIPT in `grep -rIl ${bindir}/${PN}/python ${D}${bindir}/${PN}`; do |
49 | sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT | 49 | sed -i -e '1s|^#!.*|#!/usr/bin/env python|' $PYTHSCRIPT |
50 | done | 50 | done |
51 | |||
52 | # Add a symlink to the native Python so that scripts can just invoke | ||
53 | # "nativepython" and get the right one without needing absolute paths | ||
54 | # (these often end up too long for the #! parser in the kernel as the | ||
55 | # buffer is 128 bytes long). | ||
56 | ln -s python-native/python ${D}${bindir}/nativepython | ||
51 | } | 57 | } |