summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/pypi.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-recipe/pypi.bbclass')
-rw-r--r--meta/classes-recipe/pypi.bbclass4
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):
15PYPI_PACKAGE ?= "${@pypi_package(d)}" 15PYPI_PACKAGE ?= "${@pypi_package(d)}"
16PYPI_PACKAGE_EXT ?= "tar.gz" 16PYPI_PACKAGE_EXT ?= "tar.gz"
17PYPI_ARCHIVE_NAME ?= "${PYPI_PACKAGE}-${PV}.${PYPI_PACKAGE_EXT}" 17PYPI_ARCHIVE_NAME ?= "${PYPI_PACKAGE}-${PV}.${PYPI_PACKAGE_EXT}"
18PYPI_ARCHIVE_NAME_PREFIX ?= ""
18 19
19def pypi_src_uri(d): 20def 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
24PYPI_SRC_URI ?= "${@pypi_src_uri(d)}" 26PYPI_SRC_URI ?= "${@pypi_src_uri(d)}"
25 27