[arch-commits] Commit in python-netcdf4-openmpi/trunk (PKGBUILD)

Bruno Pagani archange at gemini.archlinux.org
Wed Jun 29 22:22:41 UTC 2022


    Date: Wednesday, June 29, 2022 @ 22:22:41
  Author: archange
Revision: 1241592

upgpkg: python-netcdf4-openmpi 1.6.0-1

Modified:
  python-netcdf4-openmpi/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-29 22:22:31 UTC (rev 1241591)
+++ PKGBUILD	2022-06-29 22:22:41 UTC (rev 1241592)
@@ -3,7 +3,7 @@
 _pkg=netCDF4
 _mpi=openmpi
 pkgname=python-${_pkg,,}-${_mpi}
-pkgver=1.5.8
+pkgver=1.6.0
 pkgrel=1
 pkgdesc="Python/NumPy interface to the netCDF C library (${_mpi} version)"
 arch=(x86_64)
@@ -11,11 +11,19 @@
 license=(MIT)
 depends=(python-numpy python-cftime python-mpi4py "netcdf-${_mpi}")
 makedepends=(cython python-setuptools)
+checkdepends=(openssh)
 conflicts=(python-netcdf4)
 provides=(python-netcdf4)
-source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
-sha256sums=('ca3d468f4812c0999df86e3f428851fb0c17ac34ce0827115c246b0b690e4e84')
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz
+        ${pkgname}-fix-netcdf-filters-detection.patch::https://github.com/Unidata/netcdf4-python/pull/1173.patch)
+sha256sums=('95efa373d9a3e1cd0df7193e76e6680d9eca28e60097ca8139afea8a4346ba63'
+            'c407affa80e49547dca938ef1cb4764dedb9abd8f32a3e402d66d29aa7137f4c')
 
+prepare() {
+  # Compressor filters are not packaged currently
+  patch -p1 -d ${_pkg}-${pkgver} < ${pkgname}-fix-netcdf-filters-detection.patch || true
+}
+
 build() {
   cd ${_pkg}-${pkgver}
   USE_NCCONFIG=1 python setup.py build
@@ -23,6 +31,7 @@
 
 check() {
   cd ${_pkg}-${pkgver}/test
+  export OMPI_MCA_opal_warn_on_missing_libcuda=0
   local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
   PYTHONPATH="../build/lib.linux-${CARCH}-${python_version}" python -B ./run_all.py
 }



More information about the arch-commits mailing list