[oe-commits] Robert Yang : python3-distribute: fix interpreter
git at git.openembedded.org
git at git.openembedded.org
Thu Aug 28 14:14:11 UTC 2014
Module: openembedded-core.git
Branch: master-next
Commit: 5cf12b20c08d927af8b1a4e2997d325a030c2269
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5cf12b20c08d927af8b1a4e2997d325a030c2269
Author: Robert Yang <liezhi.yang at windriver.com>
Date: Wed Aug 27 08:57:14 2014 -0700
python3-distribute: fix interpreter
It should use "/usr/bin/env python3" rather than python.
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-devtools/python/python3-distribute_0.6.32.bb | 2 ++
1 file changed, 2 insertions(+)
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 573096c..0ef3a87 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} = "\
More information about the Openembedded-commits
mailing list