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