python3-pip: support native builds

Add native pip3 support.

[YOCTO#11049]
[YOCTO#11022]

(From OE-Core rev: cb2073658305b605cccc60439b62c1dc515d9a8d)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Juro Bystricky 2017-03-15 13:17:26 -07:00 committed by Richard Purdie
parent 68e57fa748
commit 8fc9d8e9a6
1 changed files with 7 additions and 0 deletions

View File

@ -34,6 +34,11 @@ do_install_append() {
# Installed eggs need to be passed directly to the interpreter via a pth file # 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 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} = "\ RDEPENDS_${PN} = "\
@ -47,3 +52,5 @@ RDEPENDS_${PN} = "\
python3-unixadmin \ python3-unixadmin \
python3-xmlrpc \ python3-xmlrpc \
" "
BBCLASSEXTEND = "native"