diff options
Diffstat (limited to 'meta/classes/pypi.bbclass')
-rw-r--r-- | meta/classes/pypi.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/pypi.bbclass b/meta/classes/pypi.bbclass index 272c220bca..9405d58601 100644 --- a/meta/classes/pypi.bbclass +++ b/meta/classes/pypi.bbclass | |||
@@ -8,12 +8,12 @@ def pypi_package(d): | |||
8 | 8 | ||
9 | PYPI_PACKAGE ?= "${@pypi_package(d)}" | 9 | PYPI_PACKAGE ?= "${@pypi_package(d)}" |
10 | PYPI_PACKAGE_EXT ?= "tar.gz" | 10 | PYPI_PACKAGE_EXT ?= "tar.gz" |
11 | PYPI_ARCHIVE_NAME ?= "${PYPI_PACKAGE}-${PV}.${PYPI_PACKAGE_EXT}" | ||
11 | 12 | ||
12 | def pypi_src_uri(d): | 13 | def pypi_src_uri(d): |
13 | package = d.getVar('PYPI_PACKAGE') | 14 | package = d.getVar('PYPI_PACKAGE') |
14 | package_ext = d.getVar('PYPI_PACKAGE_EXT') | 15 | archive_name = d.getVar('PYPI_ARCHIVE_NAME') |
15 | pv = d.getVar('PV') | 16 | return 'https://files.pythonhosted.org/packages/source/%s/%s/%s' % (package[0], package, archive_name) |
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)}" |
19 | 19 | ||