From: João Henrique Ferreira de Freitas Date: Fri, 18 Jul 2014 03:09:25 +0000 (-0300) Subject: python-distribute: add nativesdk to BBCLASSEXTEND X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~33126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=778a00c3dd656bbfac03274b5f60788518f7b964;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git python-distribute: add nativesdk to BBCLASSEXTEND Without this, python tools that need python-distribute doesn't install in SDK generated by OE. Signed-off-by: João Henrique Ferreira de Freitas Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/python/python-distribute_0.6.32.bb b/meta/recipes-devtools/python/python-distribute_0.6.32.bb index 58bb8b45458..70001457e0f 100644 --- a/meta/recipes-devtools/python/python-distribute_0.6.32.bb +++ b/meta/recipes-devtools/python/python-distribute_0.6.32.bb @@ -39,6 +39,12 @@ do_install_append() { echo "./${SRCNAME}-${PV}-py${PYTHON_BASEVERSION}.egg" > ${D}${PYTHON_SITEPACKAGES_DIR}/setuptools.pth } +do_install_append_class-nativesdk() { + sed -i -e '1s|^#!.*|#!/usr/bin/env python|' ${D}${PYTHON_SITEPACKAGES_DIR}/distribute-${PV}-py${PYTHON_BASEVERSION}.egg/setuptools/tests/test_resources.py + sed -i -e '1s|^#!.*|#!/usr/bin/env python|' ${D}${bindir}/easy_install + sed -i -e '1s|^#!.*|#!/usr/bin/env python|' ${D}${bindir}/easy_install-${PYTHON_BASEVERSION} +} + RDEPENDS_${PN} = "\ python-distutils \ python-compression \ @@ -46,4 +52,4 @@ RDEPENDS_${PN} = "\ RPROVIDES_${PN} += "python-setuptools" -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk"