diff options
Diffstat (limited to 'meta-python/classes/pypi.bbclass')
-rw-r--r-- | meta-python/classes/pypi.bbclass | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/meta-python/classes/pypi.bbclass b/meta-python/classes/pypi.bbclass index 41a70e25c..8d8350a2b 100644 --- a/meta-python/classes/pypi.bbclass +++ b/meta-python/classes/pypi.bbclass | |||
@@ -1,21 +1 @@ | |||
1 | def pypi_package(d): | inherit pypi-common setuptools | |
2 | bpn = d.getVar('BPN', True) | ||
3 | if bpn.startswith('python-'): | ||
4 | return bpn[7:] | ||
5 | return bpn | ||
6 | |||
7 | PYPI_PACKAGE ?= "${@pypi_package(d)}" | ||
8 | |||
9 | def pypi_src_uri(d): | ||
10 | package = d.getVar('PYPI_PACKAGE', True) | ||
11 | pv = d.getVar('PV', True) | ||
12 | return 'https://pypi.python.org/packages/source/%s/%s/%s-%s.tar.gz' % (package[0], package, package, pv) | ||
13 | |||
14 | PYPI_SRC_URI ?= "${@pypi_src_uri(d)}" | ||
15 | |||
16 | HOMEPAGE ?= "https://pypi.python.org/pypi/${PYPI_PACKAGE}/" | ||
17 | SECTION = "devel/python" | ||
18 | SRC_URI += "${PYPI_SRC_URI}" | ||
19 | S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}" | ||
20 | |||
21 | inherit setuptools | ||