Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages /
python-h5py
Commits:
d269688f by Antonio Rojas at 2023-11-15T14:18:58+01:00
upgpkg: 3.10.0-2: Drop annoying and useless version check (FS#80169)
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- + remove-version-check.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = python-h5py
pkgdesc = General-purpose Python bindings for the HDF5 library
pkgver = 3.10.0
- pkgrel = 1
+ pkgrel = 2
url = https://www.h5py.org/
arch = x86_64
license = BSD
@@ -16,8 +16,10 @@ pkgbase = python-h5py
depends = python-numpy
conflicts = hdf5-openmpi
source =
https://files.pythonhosted.org/packages/source/h/h5py/h5py-3.10.0.tar.gz
+ source = remove-version-check.patch
validpgpkeys = AC47F71DB275ECD0B3DA46E857FA4540DD4EFCF7
validpgpkeys = 96B7334D7610EE3E68AFFE589E027116943D6A8B
sha256sums =
d93adc48ceeb33347eb24a634fb787efc7ae4644e6ea4ba733d099605045c049
+ sha256sums =
621f108e5e95dc250047501447d0dc633fbf3f8bf19e4c4b4c4d5a286864664c
pkgname = python-h5py
=====================================
PKGBUILD
=====================================
@@ -7,7 +7,7 @@
_pkg=h5py
pkgname=python-${_pkg}
pkgver=3.10.0
-pkgrel=1
+pkgrel=2
pkgdesc="General-purpose Python bindings for the HDF5 library"
arch=(x86_64)
url="https://www.h5py.org/"
@@ -16,8 +16,10 @@ depends=(hdf5 liblzf python-numpy)
makedepends=(cython0 python-pkgconfig python-setuptools)
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=('d93adc48ceeb33347eb24a634fb787efc7ae4644e6ea4ba733d099605045c049')
+source=(https://files.pythonhosted.org/packages/source/h/${_pkg}/${_pkg}-${pkgver}.tar.gz
+ remove-version-check.patch)
+sha256sums=('d93adc48ceeb33347eb24a634fb787efc7ae4644e6ea4ba733d099605045c049'
+ '621f108e5e95dc250047501447d0dc633fbf3f8bf19e4c4b4c4d5a286864664c')
validpgpkeys=(AC47F71DB275ECD0B3DA46E857FA4540DD4EFCF7 # Thomas A Caswell
(Brookhaven National Lab) <[email protected]>
96B7334D7610EE3E68AFFE589E027116943D6A8B) # Thomas A Caswell
<[email protected]> (new key)
# See https://github.com/h5py/h5py/issues/1299 about lack of GPG sigs for
recent releases
@@ -28,6 +30,8 @@ prepare() {
sed -i 's/numpy ==/numpy >=/g' setup.py
# Remove RPATH
sed -i "s/settings\\['runtime_library_dirs'\\] =
settings\\['library_dirs'\\]/pass/" setup_build.py
+ # Drop annoying version check
+ patch -p1 -i ../remove-version-check.patch
}
build() {
=====================================
remove-version-check.patch
=====================================
@@ -0,0 +1,19 @@
+diff --git a/h5py/__init__.py b/h5py/__init__.py
+index 20d11225..e3e5eb54 100644
+--- a/h5py/__init__.py
++++ b/h5py/__init__.py
+@@ -32,14 +32,6 @@ except ImportError:
+
+ from . import version
+
+-if version.hdf5_version_tuple != version.hdf5_built_version_tuple:
+- _warn(("h5py is running against HDF5 {0} when it was built against {1}, "
+- "this may cause problems").format(
+- '{0}.{1}.{2}'.format(*version.hdf5_version_tuple),
+- '{0}.{1}.{2}'.format(*version.hdf5_built_version_tuple)
+- ))
+-
+-
+ _errors.silence_errors()
+
+ from ._conv import register_converters as _register_converters, \
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-h5py/-/commit/d269688f4cc80d36de061cc15a2cc716886e7e3b
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-h5py/-/commit/d269688f4cc80d36de061cc15a2cc716886e7e3b
You're receiving this email because of your account on gitlab.archlinux.org.