mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
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:
committed by
Richard Purdie
parent
d984fcf740
commit
f07c17dcee
@@ -39,6 +39,12 @@ do_install_append() {
|
|||||||
echo "./${SRCNAME}-${PV}-py${PYTHON_BASEVERSION}.egg" > ${D}${PYTHON_SITEPACKAGES_DIR}/setuptools.pth
|
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} = "\
|
RDEPENDS_${PN} = "\
|
||||||
python-distutils \
|
python-distutils \
|
||||||
python-compression \
|
python-compression \
|
||||||
@@ -46,4 +52,4 @@ RDEPENDS_${PN} = "\
|
|||||||
|
|
||||||
RPROVIDES_${PN} += "python-setuptools"
|
RPROVIDES_${PN} += "python-setuptools"
|
||||||
|
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native nativesdk"
|
||||||
|
|||||||
Reference in New Issue
Block a user