On Mon, Jul 14, 2014 at 7:55 PM, João Henrique Ferreira de Freitas
<[email protected]> wrote:
> 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 <[email protected]>
> ---
>  meta/recipes-devtools/python/python-distribute_0.6.32.bb | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
>
> 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}
> +}

Couldn't this be done unconditionally for all target types?
"/usr/bin/env python" should work fine in target as well, no?

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to