From: Juro Bystricky Date: Wed, 15 Mar 2017 20:17:26 +0000 (-0700) Subject: python3-pip: support native builds X-Git-Tag: yocto-4.0~17603 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb2073658305b605cccc60439b62c1dc515d9a8d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git python3-pip: support native builds Add native pip3 support. [YOCTO#11049] [YOCTO#11022] Signed-off-by: Juro Bystricky Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/python/python3-pip_9.0.1.bb b/meta/recipes-devtools/python/python3-pip_9.0.1.bb index b6dbb6e5f26..4456b9b1b10 100644 --- a/meta/recipes-devtools/python/python3-pip_9.0.1.bb +++ b/meta/recipes-devtools/python/python3-pip_9.0.1.bb @@ -34,6 +34,11 @@ do_install_append() { # Installed eggs need to be passed directly to the interpreter via a pth file echo "./${SRCNAME}-${PV}-py${PYTHON_BASEVERSION}.egg" > ${D}${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}-${PV}.pth + + # Make sure we use /usr/bin/env python3 + for PYTHSCRIPT in `grep -rIl ${bindir} ${D}${bindir}/pip3*`; do + sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT + done } RDEPENDS_${PN} = "\ @@ -47,3 +52,5 @@ RDEPENDS_${PN} = "\ python3-unixadmin \ python3-xmlrpc \ " + +BBCLASSEXTEND = "native"