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 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"