python3-pip: support native builds
PATCH 1/1 python3-pip: support native builds
Add native pip3 support.
[YOCTO#11049]
[YOCTO#11022]
Signed-off-by Juro Bystricky <[email protected]>
--- meta/recipes-devtools/python/python3-pip_9.0.1.bb | 7 +++++++ 1 file changed, 7 insertions(+)
meta/recipes-devtools/python/python3-pip_9.0.1.bb +7 -0
@@ -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"
Signature · 1 line
2.7.4