[gnome-continuous-yocto/gnomeostree-3.14-dizzy] pypi: Import from http://patchwork.openembedded.org/patch/90979/
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.14-dizzy] pypi: Import from http://patchwork.openembedded.org/patch/90979/
- Date: Sat, 11 Apr 2015 12:18:58 +0000 (UTC)
commit 8ee6da881bf9fba7098f3867cf3e7178c8b760e7
Author: Colin Walters <walters verbum org>
Date: Sat Apr 11 08:18:43 2015 -0400
pypi: Import from http://patchwork.openembedded.org/patch/90979/
meta-gnomeos/classes/pypi.bbclass | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/meta-gnomeos/classes/pypi.bbclass b/meta-gnomeos/classes/pypi.bbclass
new file mode 100644
index 0000000..c4b09c8
--- /dev/null
+++ b/meta-gnomeos/classes/pypi.bbclass
@@ -0,0 +1,22 @@
+# http://patchwork.openembedded.org/patch/90979/
+def pypi_package(d):
+ bpn = d.getVar('BPN', True)
+ if bpn.startswith('python-'):
+ return bpn[7:]
+ return bpn
+
+PYPI_PACKAGE ?= "${ pypi_package(d)}"
+
+def pypi_src_uri(d):
+ package = d.getVar('PYPI_PACKAGE', True)
+ pv = d.getVar('PV', True)
+ return 'https://pypi.python.org/packages/source/%s/%s/%s-%s.tar.gz' % (package[0], package, package, pv)
+
+PYPI_SRC_URI ?= "${ pypi_src_uri(d)}"
+
+HOMEPAGE ?= "https://pypi.python.org/pypi/${PYPI_PACKAGE}/"
+SECTION = "devel/python"
+SRC_URI += "${PYPI_SRC_URI}"
+S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}"
+
+inherit setuptools
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]