summaryrefslogtreecommitdiff
path: root/poky/meta/recipes-devtools/python/python3-docutils_0.21.2.bb
diff options
context:
space:
mode:
Diffstat (limited to 'poky/meta/recipes-devtools/python/python3-docutils_0.21.2.bb')
-rw-r--r--poky/meta/recipes-devtools/python/python3-docutils_0.21.2.bb8
1 files changed, 8 insertions, 0 deletions
diff --git a/poky/meta/recipes-devtools/python/python3-docutils_0.21.2.bb b/poky/meta/recipes-devtools/python/python3-docutils_0.21.2.bb
index ac41ef6858..d9f8160913 100644
--- a/poky/meta/recipes-devtools/python/python3-docutils_0.21.2.bb
+++ b/poky/meta/recipes-devtools/python/python3-docutils_0.21.2.bb
@@ -11,4 +11,12 @@ inherit pypi python_setuptools_build_meta
RDEPENDS:${PN} += " \
python3-pprint \
"
+
+do_install:append() {
+ # Make sure we use /usr/bin/env python3
+ for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
+ sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT
+ done
+}
+
BBCLASSEXTEND = "native nativesdk"