summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-pycrypto_2.6.1.bb
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2017-11-16 14:20:42 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2017-11-17 11:10:29 -0500
commit6525fbca288d5d06be696447ad7f457af01f080d (patch)
tree8535966e6cdffdfe6ea0258bed8c855dffc28aab /meta-openstack/recipes-devtools/python/python-pycrypto_2.6.1.bb
parented81a9b98b545183b0a0ff24d09841bc622fe7f4 (diff)
downloadmeta-cloud-services-6525fbca288d5d06be696447ad7f457af01f080d.tar.gz
python-*: switch remaining (https) pypi recipes to use the pypi class
The original commit to switch pypi recipes to use the pypi.bbclass only addressed the urgent need to get the recipes using "http" converted. This change is the same but converts the remaining pypi recipes which were already uing "https". Cleanup the various python-* recipes which download from pypi. The biggest change is to "inherit pypi" which should result in us always using current pypi best practices. This will for example ensure we are using https and not http which is apparently going to be disabled soon. In most cases we are able to drop SRC_URI, however, for some recipes which use 'zip' or 'bz2' extensions we need to set PYPI_PACKAGE_EXT. In all cases we can drop the defining of 'S' and 'PR' as the pypi class and the PR server will set these correctly. In most cases we can drop SRCNAME. Where needed we instead set PYPI_PACKAGE to overwrite the derived name that the pypi class would otherwise calculate. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-pycrypto_2.6.1.bb')
-rw-r--r--meta-openstack/recipes-devtools/python/python-pycrypto_2.6.1.bb13
1 files changed, 4 insertions, 9 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-pycrypto_2.6.1.bb b/meta-openstack/recipes-devtools/python/python-pycrypto_2.6.1.bb
index b823224..fc91074 100644
--- a/meta-openstack/recipes-devtools/python/python-pycrypto_2.6.1.bb
+++ b/meta-openstack/recipes-devtools/python/python-pycrypto_2.6.1.bb
@@ -4,24 +4,19 @@ SECTION = "devel/python"
4LICENSE = "PSFv2" 4LICENSE = "PSFv2"
5LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=35f354d199e8cb7667b059a23578e63d" 5LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=35f354d199e8cb7667b059a23578e63d"
6 6
7SRCNAME = "pycrypto" 7SRC_URI += " \
8 8 file://cross-compiling.patch \
9SRC_URI = "https://pypi.python.org/packages/source/p/${SRCNAME}/${SRCNAME}-${PV}.tar.gz \ 9"
10 file://cross-compiling.patch"
11 10
12SRC_URI[md5sum] = "55a61a054aa66812daf5161a0d5d7eda" 11SRC_URI[md5sum] = "55a61a054aa66812daf5161a0d5d7eda"
13SRC_URI[sha256sum] = "f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c" 12SRC_URI[sha256sum] = "f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c"
14 13
15S = "${WORKDIR}/${SRCNAME}-${PV}"
16
17inherit distutils
18
19export STAGING_INCDIR 14export STAGING_INCDIR
20export STAGING_LIBDIR 15export STAGING_LIBDIR
21export BUILD_SYS 16export BUILD_SYS
22export HOST_SYS 17export HOST_SYS
23 18
24inherit autotools autotools-brokensep distutils 19inherit autotools autotools-brokensep distutils pypi
25 20
26DEPENDS += " gmp" 21DEPENDS += " gmp"
27 22