[arch-commits] Commit in python-netcdf4-openmpi/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Fri Oct 1 14:08:39 UTC 2021


    Date: Friday, October 1, 2021 @ 14:08:39
  Author: foutrelis
Revision: 1026367

archrelease: copy trunk to community-staging-x86_64

Added:
  python-netcdf4-openmpi/repos/community-staging-x86_64/
  python-netcdf4-openmpi/repos/community-staging-x86_64/PKGBUILD
    (from rev 1026366, python-netcdf4-openmpi/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: python-netcdf4-openmpi/repos/community-staging-x86_64/PKGBUILD (from rev 1026366, python-netcdf4-openmpi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-10-01 14:08:39 UTC (rev 1026367)
@@ -0,0 +1,34 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=netCDF4
+_mpi=openmpi
+pkgname=python-${_pkg,,}-${_mpi}
+pkgver=1.5.7
+pkgrel=2
+pkgdesc="Python/NumPy interface to the netCDF C library (${_mpi} version)"
+arch=(x86_64)
+url="https://unidata.github.io/${_pkg,,}-python"
+license=(MIT)
+depends=(python-numpy python-cftime python-mpi4py "netcdf-${_mpi}")
+makedepends=(cython python-setuptools)
+conflicts=(python-netcdf4)
+provides=(python-netcdf4)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('d145f9c12da29da3922d8b8aafea2a2a89501bcb28a219a46b7b828b57191594')
+
+build() {
+  cd ${_pkg}-${pkgver}
+  USE_NCCONFIG=1 python setup.py build
+}
+
+check() {
+  cd ${_pkg}-${pkgver}/test
+  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
+}
+
+package() {
+  cd ${_pkg}-${pkgver}
+  USE_NCCONFIG=1 python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=2
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list