[arch-commits] Commit in python-h5py/repos/community-x86_64 (PKGBUILD PKGBUILD)
Bruno Pagani
archange at archlinux.org
Mon Nov 9 22:11:00 UTC 2020
Date: Monday, November 9, 2020 @ 22:11:00
Author: archange
Revision: 748251
archrelease: copy trunk to community-x86_64
Added:
python-h5py/repos/community-x86_64/PKGBUILD
(from rev 748250, python-h5py/trunk/PKGBUILD)
Deleted:
python-h5py/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 100 +++++++++++++++++++++++++++----------------------------------
1 file changed, 45 insertions(+), 55 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-09 22:10:36 UTC (rev 748250)
+++ PKGBUILD 2020-11-09 22:11:00 UTC (rev 748251)
@@ -1,55 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-# Contributor: Andrzej Giniewicz <gginiu at gmail.com>
-# Contributor: Rich Li <rich at dranek.com>
-# Contributor: Sebastien Binet <binet at lblbox>
-
-_pkg=h5py
-pkgname=python-${_pkg}
-pkgver=3.0.0
-pkgrel=1
-pkgdesc="General-purpose Python bindings for the HDF5 library"
-arch=(x86_64)
-url="https://www.h5py.org/"
-license=(BSD)
-depends=(hdf5 liblzf python-numpy)
-makedepends=(cython python-pkgconfig)
-checkdepends=(python-pytest python-pytest-mpi python-pytables)
-conflicts=(hdf5-openmpi)
-source=(https://files.pythonhosted.org/packages/source/h/${_pkg}/${_pkg}-${pkgver}.tar.gz
- h5py-system-lzf.patch::https://github.com/h5py/h5py/commit/da96e2b8b9f73fc67c128c9b65787b3527be119c.patch
- h5py-py3.8-cached_property.patch::https://github.com/h5py/h5py/commit/a87984f0bc2b2596948880d2ec38196017e275fc.patch)
-sha256sums=('7d3803be1b530c68c2955faba726dc0f591079b68941a0c0269b5384a42ab519'
- '665c15ffc714788749f4e0d731775cb927593fed496097e4abf2174612d9a747'
- '4d5cdf7af4ea5d79ec0ac39f178ef55fe6f571efb76a008e553c4b3030730372')
-validpgpkeys=(AC47F71DB275ECD0B3DA46E857FA4540DD4EFCF7 # Thomas A Caswell (Brookhaven National Lab) <tcaswell at bnl.gov>
- 96B7334D7610EE3E68AFFE589E027116943D6A8B) # Thomas A Caswell <tcaswell at bnl.gov> (new key)
-# See https://github.com/h5py/h5py/issues/1299 about lack of GPG sigs for recent releases
-
-prepare() {
- cd ${_pkg}-${pkgver}
- # Remove RPATH
- sed -i "s/settings\\['runtime_library_dirs'\\] = settings\\['library_dirs'\\]/pass/" setup_build.py
- # Build against system lzf
- patch -Np1 -i ../h5py-system-lzf.patch
- # cached_property is included in python 3.8
- patch -Np1 -i ../h5py-py3.8-cached_property.patch
-}
-
-build() {
- cd ${_pkg}-${pkgver}
- H5PY_SYSTEM_LZF=1 python setup.py build
-}
-
-check() {
- cd ${_pkg}-${pkgver}
-# local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
-# PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}" python -m pytest --pyargs h5py -rxXs
- python setup.py test
-}
-
-package() {
- cd ${_pkg}-${pkgver}
- python setup.py install --root="${pkgdir}" --skip-build --optimize=1
- install -Dm644 licenses/license.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
-}
Copied: python-h5py/repos/community-x86_64/PKGBUILD (from rev 748250, python-h5py/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-09 22:11:00 UTC (rev 748251)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Rich Li <rich at dranek.com>
+# Contributor: Sebastien Binet <binet at lblbox>
+
+_pkg=h5py
+pkgname=python-${_pkg}
+pkgver=3.1.0
+pkgrel=1
+pkgdesc="General-purpose Python bindings for the HDF5 library"
+arch=(x86_64)
+url="https://www.h5py.org/"
+license=(BSD)
+depends=(hdf5 liblzf python-numpy)
+makedepends=(cython python-pkgconfig)
+checkdepends=(python-pytest python-pytest-mpi python-pytables)
+conflicts=(hdf5-openmpi)
+source=(https://files.pythonhosted.org/packages/source/h/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('1e2516f190652beedcb8c7acfa1c6fa92d99b42331cbef5e5c7ec2d65b0fc3c2')
+validpgpkeys=(AC47F71DB275ECD0B3DA46E857FA4540DD4EFCF7 # Thomas A Caswell (Brookhaven National Lab) <tcaswell at bnl.gov>
+ 96B7334D7610EE3E68AFFE589E027116943D6A8B) # Thomas A Caswell <tcaswell at bnl.gov> (new key)
+# See https://github.com/h5py/h5py/issues/1299 about lack of GPG sigs for recent releases
+
+prepare() {
+ cd ${_pkg}-${pkgver}
+ # Remove RPATH
+ sed -i "s/settings\\['runtime_library_dirs'\\] = settings\\['library_dirs'\\]/pass/" setup_build.py
+}
+
+build() {
+ cd ${_pkg}-${pkgver}
+ H5PY_SYSTEM_LZF=1 python setup.py build
+}
+
+check() {
+ local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ PYTHONPATH="${PWD}/${_pkg}-${pkgver}/build/lib.linux-${CARCH}-${python_version}" python -m pytest --pyargs h5py -rxXs
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python setup.py install --root="${pkgdir}" --skip-build --optimize=1
+ install -Dm644 licenses/license.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
More information about the arch-commits
mailing list