From 1ec43c1e4f379ef5806268aa80ce8487388ab00c Mon Sep 17 00:00:00 2001 From: Sven Ebenfeld Date: Fri, 22 Jan 2016 23:08:46 +0100 Subject: add pypi3 bbclass to make python3 recipe creation easier as well Signed-off-by: Sven Ebenfeld --- meta-python/classes/pypi.bbclass | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'meta-python/classes/pypi.bbclass') diff --git a/meta-python/classes/pypi.bbclass b/meta-python/classes/pypi.bbclass index 41a70e25c3..8d8350a2b9 100644 --- a/meta-python/classes/pypi.bbclass +++ b/meta-python/classes/pypi.bbclass @@ -1,21 +1 @@ -def pypi_package(d): - bpn = d.getVar('BPN', True) - if bpn.startswith('python-'): - return bpn[7:] - return bpn - -PYPI_PACKAGE ?= "${@pypi_package(d)}" - -def pypi_src_uri(d): - package = d.getVar('PYPI_PACKAGE', True) - pv = d.getVar('PV', True) - return 'https://pypi.python.org/packages/source/%s/%s/%s-%s.tar.gz' % (package[0], package, package, pv) - -PYPI_SRC_URI ?= "${@pypi_src_uri(d)}" - -HOMEPAGE ?= "https://pypi.python.org/pypi/${PYPI_PACKAGE}/" -SECTION = "devel/python" -SRC_URI += "${PYPI_SRC_URI}" -S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}" - -inherit setuptools +inherit pypi-common setuptools -- cgit 1.2.3-korg