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

Bruno Pagani archange at archlinux.org
Tue Dec 22 19:56:09 UTC 2020


    Date: Tuesday, December 22, 2020 @ 19:56:09
  Author: archange
Revision: 782871

archrelease: copy trunk to community-x86_64

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

----------+
 PKGBUILD |   72 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 37 insertions(+), 35 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-22 19:56:08 UTC (rev 782870)
+++ PKGBUILD	2020-12-22 19:56:09 UTC (rev 782871)
@@ -1,35 +0,0 @@
-# Maintainer: Bruno Pagani <archange at archlinux.org>
-
-_pkg=netCDF4
-_mpi=openmpi
-pkgname=python-${_pkg,,}-${_mpi}
-pkgver=1.5.4
-pkgrel=3
-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=('941de6f3623b6474ecb4d043be5990690f7af4cf0d593b31be912627fe5aad03')
-
-build() {
-    cd ${_pkg}-${pkgver}
-    USE_NCCONFIG=1 python setup.py build
-}
-
-check() {
-    cd ${_pkg}-${pkgver}/test
-    PYTHONPATH="../build/lib.linux-${CARCH}-3.9" 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 docs/netCDF4/* -t "${pkgdir}"/usr/share/doc/${pkgname}/docs/netCDF4
-    install -Dm644 COPYING -t "${pkgdir}"/usr/share/licenses/${pkgname}
-}

Copied: python-netcdf4-openmpi/repos/community-x86_64/PKGBUILD (from rev 782869, python-netcdf4-openmpi/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-12-22 19:56:09 UTC (rev 782871)
@@ -0,0 +1,37 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=netCDF4
+_mpi=openmpi
+pkgname=python-${_pkg,,}-${_mpi}
+pkgver=1.5.5.1
+pkgrel=1
+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=('d957e55a667d1fc651ddef22fea10ded0f142b7d9dbbf4d08c0012d32f445abd')
+
+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 docs/netCDF4/* -t "${pkgdir}"/usr/share/doc/${pkgname}/docs/netCDF4
+#   https://github.com/Unidata/netcdf4-python/pull/1060
+#    install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list