diff options
| -rw-r--r-- | meta/classes-recipe/pypi.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes-recipe/pypi.bbclass b/meta/classes-recipe/pypi.bbclass index aab04c638f..f510bfed06 100644 --- a/meta/classes-recipe/pypi.bbclass +++ b/meta/classes-recipe/pypi.bbclass | |||
| @@ -15,11 +15,13 @@ def pypi_package(d): | |||
| 15 | PYPI_PACKAGE ?= "${@pypi_package(d)}" | 15 | PYPI_PACKAGE ?= "${@pypi_package(d)}" |
| 16 | PYPI_PACKAGE_EXT ?= "tar.gz" | 16 | PYPI_PACKAGE_EXT ?= "tar.gz" |
| 17 | PYPI_ARCHIVE_NAME ?= "${PYPI_PACKAGE}-${PV}.${PYPI_PACKAGE_EXT}" | 17 | PYPI_ARCHIVE_NAME ?= "${PYPI_PACKAGE}-${PV}.${PYPI_PACKAGE_EXT}" |
| 18 | PYPI_ARCHIVE_NAME_PREFIX ?= "" | ||
| 18 | 19 | ||
| 19 | def pypi_src_uri(d): | 20 | def pypi_src_uri(d): |
| 20 | package = d.getVar('PYPI_PACKAGE') | 21 | package = d.getVar('PYPI_PACKAGE') |
| 21 | archive_name = d.getVar('PYPI_ARCHIVE_NAME') | 22 | archive_name = d.getVar('PYPI_ARCHIVE_NAME') |
| 22 | return 'https://files.pythonhosted.org/packages/source/%s/%s/%s' % (package[0], package, archive_name) | 23 | archive_downloadname = d.getVar('PYPI_ARCHIVE_NAME_PREFIX') + archive_name |
| 24 | return 'https://files.pythonhosted.org/packages/source/%s/%s/%s;downloadfilename=%s' % (package[0], package, archive_name, archive_downloadname) | ||
| 23 | 25 | ||
| 24 | PYPI_SRC_URI ?= "${@pypi_src_uri(d)}" | 26 | PYPI_SRC_URI ?= "${@pypi_src_uri(d)}" |
| 25 | 27 | ||
