diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r-- | meta-python/recipes-devtools/python/python-cython.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python-cython.inc b/meta-python/recipes-devtools/python/python-cython.inc index 1ecdcc9fda..da39d14c01 100644 --- a/meta-python/recipes-devtools/python/python-cython.inc +++ b/meta-python/recipes-devtools/python/python-cython.inc | |||
@@ -17,3 +17,10 @@ RDEPENDS_${PN}_class-target += "\ | |||
17 | ${PYTHON_PN}-subprocess \ | 17 | ${PYTHON_PN}-subprocess \ |
18 | ${PYTHON_PN}-shell \ | 18 | ${PYTHON_PN}-shell \ |
19 | " | 19 | " |
20 | |||
21 | do_install_append() { | ||
22 | # Make sure we use /usr/bin/env python | ||
23 | for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do | ||
24 | sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT | ||
25 | done | ||
26 | } | ||