diff options
author | João Henrique Ferreira de Freitas <joaohf@gmail.com> | 2014-07-18 00:09:25 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-19 00:08:58 +0100 |
commit | f07c17dcee56c8c020b965bf62d81209a6d2eca4 (patch) | |
tree | 32bb7d2634d5892eadbef23a63b335c4b8a91d9f /meta/recipes-devtools | |
parent | d984fcf740e0a9661c459d435dc11c07d6ed3c62 (diff) | |
download | poky-f07c17dcee56c8c020b965bf62d81209a6d2eca4.tar.gz |
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>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/python/python-distribute_0.6.32.bb | 8 |
1 files changed, 7 insertions, 1 deletions
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 58bb8b4545..70001457e0 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() { | |||
39 | echo "./${SRCNAME}-${PV}-py${PYTHON_BASEVERSION}.egg" > ${D}${PYTHON_SITEPACKAGES_DIR}/setuptools.pth | 39 | echo "./${SRCNAME}-${PV}-py${PYTHON_BASEVERSION}.egg" > ${D}${PYTHON_SITEPACKAGES_DIR}/setuptools.pth |
40 | } | 40 | } |
41 | 41 | ||
42 | do_install_append_class-nativesdk() { | ||
43 | sed -i -e '1s|^#!.*|#!/usr/bin/env python|' ${D}${PYTHON_SITEPACKAGES_DIR}/distribute-${PV}-py${PYTHON_BASEVERSION}.egg/setuptools/tests/test_resources.py | ||
44 | sed -i -e '1s|^#!.*|#!/usr/bin/env python|' ${D}${bindir}/easy_install | ||
45 | sed -i -e '1s|^#!.*|#!/usr/bin/env python|' ${D}${bindir}/easy_install-${PYTHON_BASEVERSION} | ||
46 | } | ||
47 | |||
42 | RDEPENDS_${PN} = "\ | 48 | RDEPENDS_${PN} = "\ |
43 | python-distutils \ | 49 | python-distutils \ |
44 | python-compression \ | 50 | python-compression \ |
@@ -46,4 +52,4 @@ RDEPENDS_${PN} = "\ | |||
46 | 52 | ||
47 | RPROVIDES_${PN} += "python-setuptools" | 53 | RPROVIDES_${PN} += "python-setuptools" |
48 | 54 | ||
49 | BBCLASSEXTEND = "native" | 55 | BBCLASSEXTEND = "native nativesdk" |