[gnome-continuous-yocto/gnomeostree-3.28-rocko: 5120/8267] python3-pip: support native builds
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 5120/8267] python3-pip: support native builds
- Date: Sun, 17 Dec 2017 02:59:37 +0000 (UTC)
commit 8fc9d8e9a6321136ff1dd5f8ffc3d489ba0d4643
Author: Juro Bystricky <juro bystricky intel com>
Date: Wed Mar 15 13:17:26 2017 -0700
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>
meta/recipes-devtools/python/python3-pip_9.0.1.bb | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
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 b6dbb6e..4456b9b 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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]