From: Robert Yang Date: Wed, 27 Aug 2014 15:57:14 +0000 (-0700) Subject: python3-distribute: fix interpreter X-Git-Tag: 2015-4~1733 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=5cf12b20c08d927af8b1a4e2997d325a030c2269;p=openembedded-core.git python3-distribute: fix interpreter It should use "/usr/bin/env python3" rather than python. Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/python/python3-distribute_0.6.32.bb b/meta/recipes-devtools/python/python3-distribute_0.6.32.bb index 573096cb1c..0ef3a8762f 100644 --- a/meta/recipes-devtools/python/python3-distribute_0.6.32.bb +++ b/meta/recipes-devtools/python/python3-distribute_0.6.32.bb @@ -37,6 +37,8 @@ do_install_append() { rm ${D}${PYTHON_SITEPACKAGES_DIR}/setuptools.pth mv ${D}${bindir}/easy_install ${D}${bindir}/easy3_install echo "./${SRCNAME}-${PV}-py${PYTHON_BASEVERSION}.egg" > ${D}${PYTHON_SITEPACKAGES_DIR}/setuptools.pth + sed -i -e '1s|^#!.*python|#!/usr/bin/env python3|' \ + ${D}${PYTHON_SITEPACKAGES_DIR}/distribute-${PV}-py${PYTHON_BASEVERSION}.egg/setuptools/tests/test_resources.py } RDEPENDS_${PN} = "\