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 <joaohf@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
João Henrique Ferreira de Freitas 2014-07-18 00:09:25 -03:00 committed by Richard Purdie
parent d984fcf740
commit f07c17dcee
1 changed files with 7 additions and 1 deletions

View File

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