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

Bruno Pagani archange at archlinux.org
Sun Mar 17 22:03:05 UTC 2019


    Date: Sunday, March 17, 2019 @ 22:03:04
  Author: archange
Revision: 442414

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: python-h5py-openmpi/repos/community-staging-x86_64/PKGBUILD (from rev 442413, python-h5py-openmpi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-03-17 22:03:04 UTC (rev 442414)
@@ -0,0 +1,71 @@
+# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange at archlinux.org>
+# Contributor: Joey Dumont <joey.dumont at gmail.com>
+
+_pkg=h5py
+_mpi=openmpi
+pkgbase=python-${_pkg}-${_mpi}
+pkgname=("python-${_pkg}-${_mpi}" "python2-${_pkg}-${_mpi}")
+pkgver=2.9.0
+pkgrel=2
+pkgdesc="General-purpose Python bindings for the HDF5 library (${_mpi} version)"
+url="https://www.h5py.org/"
+arch=('x86_64')
+license=('BSD')
+makedepends=("hdf5-${_mpi}" 'cython' 'cython2' 'python-numpy' 'python2-numpy' 'python-six' 'python2-six'
+             'python-pkgconfig' 'python2-pkgconfig' 'python-mpi4py' 'python2-mpi4py')
+checkdepends=('inetutils' 'python2-unittest2')
+source=("https://files.pythonhosted.org/packages/source/h/$_pkg/$_pkg-$pkgver.tar.gz"{,.asc}
+        h5py-hdf5-1.10.5.patch::"https://github.com/h5py/h5py/commit/141eafa531c6c09a06efe6a694251a1eea84908d.patch")
+sha256sums=('9d41ca62daf36d6b6515ab8765e4c8c4388ee18e2a665701fef2b41563821002' 'SKIP'
+            '01fff5338ea37458856660cc5cfee5263b7d20d32fadd31ae45bd1e10d085e11')
+validpgpkeys=('AC47F71DB275ECD0B3DA46E857FA4540DD4EFCF7' # Thomas A Caswell (Brookhaven National Lab) <tcaswell at bnl.gov>
+              '96B7334D7610EE3E68AFFE589E027116943D6A8B') # Thomas A Caswell <tcaswell at bnl.gov> (new key)
+
+
+prepare() {
+    # Remove RPATH
+    sed -i "s/settings\\['runtime_library_dirs'\\] = settings\\['library_dirs'\\]/pass/" ${_pkg}-${pkgver}/setup_build.py
+    (cd $_pkg-$pkgver && patch -p1 -i ../h5py-hdf5-1.10.5.patch)
+    cp -a ${_pkg}-${pkgver}{,-py2}
+}
+
+build() {
+    export CC=mpicc
+    cd ${_pkg}-${pkgver}
+    python setup.py configure --mpi 
+    python setup.py build
+
+    cd ../${_pkg}-${pkgver}-py2
+    python2 setup.py configure --mpi
+    python2 setup.py build
+}
+
+check() {
+    cd ${_pkg}-${pkgver}
+    python setup.py test
+
+    cd ../${_pkg}-${pkgver}-py2
+    python2 setup.py test
+}
+
+package_python-h5py-openmpi() {
+    depends=('hdf5-openmpi' 'python-numpy' 'python-six' 'python-mpi4py')
+    conflicts=('python-h5py')
+    provides=('python-h5py')
+
+    cd ${_pkg}-${pkgver}
+    python setup.py install --skip-build --root="${pkgdir}" --optimize=1
+
+    install -D licenses/license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-h5py-openmpi() {
+    depends=('hdf5-openmpi' 'python2-numpy' 'python2-six' 'python2-mpi4py')
+    conflicts=('python2-h5py')
+    provides=('python2-h5py')
+
+    cd ${_pkg}-${pkgver}-py2
+    python2 setup.py install --skip-build --root="${pkgdir}" --optimize=1
+
+    install -D licenses/license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}


More information about the arch-commits mailing list