diff options
Diffstat (limited to 'meta-python')
-rw-r--r-- | meta-python/classes/pypi.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-python/classes/pypi.bbclass b/meta-python/classes/pypi.bbclass index cd27cd24e6..3d81ab3c2f 100644 --- a/meta-python/classes/pypi.bbclass +++ b/meta-python/classes/pypi.bbclass | |||
@@ -1,5 +1,5 @@ | |||
1 | def pypi_package(d): | 1 | def pypi_package(d): |
2 | bpn = d.getVar('BPN', True) | 2 | bpn = d.getVar('BPN') |
3 | if bpn.startswith('python-'): | 3 | if bpn.startswith('python-'): |
4 | return bpn[7:] | 4 | return bpn[7:] |
5 | elif bpn.startswith('python3-'): | 5 | elif bpn.startswith('python3-'): |
@@ -10,9 +10,9 @@ PYPI_PACKAGE ?= "${@pypi_package(d)}" | |||
10 | PYPI_PACKAGE_EXT ?= "tar.gz" | 10 | PYPI_PACKAGE_EXT ?= "tar.gz" |
11 | 11 | ||
12 | def pypi_src_uri(d): | 12 | def pypi_src_uri(d): |
13 | package = d.getVar('PYPI_PACKAGE', True) | 13 | package = d.getVar('PYPI_PACKAGE') |
14 | package_ext = d.getVar('PYPI_PACKAGE_EXT', True) | 14 | package_ext = d.getVar('PYPI_PACKAGE_EXT') |
15 | pv = d.getVar('PV', True) | 15 | pv = d.getVar('PV') |
16 | return 'https://files.pythonhosted.org/packages/source/%s/%s/%s-%s.%s' % (package[0], package, package, pv, package_ext) | 16 | return 'https://files.pythonhosted.org/packages/source/%s/%s/%s-%s.%s' % (package[0], package, package, pv, package_ext) |
17 | 17 | ||
18 | PYPI_SRC_URI ?= "${@pypi_src_uri(d)}" | 18 | PYPI_SRC_URI ?= "${@pypi_src_uri(d)}" |