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: rev_ivi_2015_02_04~7438 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5e7f803b8dab003f0ea36c09ac2e28ea7b85822;p=scm%2Fbb%2Ftizen-distro.git python-distribute: add nativesdk to BBCLASSEXTEND Without this, python tools that need python-distribute doesn't install in SDK generated by OE. (From OE-Core rev: 778a00c3dd656bbfac03274b5f60788518f7b964) 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 58bb8b4..7000145 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"