[arch-commits] Commit in python-h5py-openmpi/repos (2 files)
Bruno Pagani
archange at archlinux.org
Fri Aug 24 15:50:41 UTC 2018
Date: Friday, August 24, 2018 @ 15:50:41
Author: archange
Revision: 373736
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 373735, python-h5py-openmpi/trunk/PKGBUILD)
----------+
PKGBUILD | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
Copied: python-h5py-openmpi/repos/community-staging-x86_64/PKGBUILD (from rev 373735, python-h5py-openmpi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-08-24 15:50:41 UTC (rev 373736)
@@ -0,0 +1,69 @@
+# 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.8.0
+pkgrel=3
+pkgdesc="General-purpose Python bindings for the HDF5 library (${_mpi} version)"
+url="http://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://pypi.io/packages/source/h/$_pkg/$_pkg-$pkgver.tar.gz"{,.asc})
+source=($pkgname-$pkgver.tar.gz::"https://github.com/h5py/h5py/archive/$pkgver.tar.gz")
+sha256sums=('eae41382be28b7264824450ce343dd625f972bedaaa3b0cced284986aabcbaee')
+# 'SKIP')
+validpgpkeys=('AC47F71DB275ECD0B3DA46E857FA4540DD4EFCF7') # Thomas A Caswell (Brookhaven National Lab) <tcaswell at bnl.gov>
+
+prepare() {
+ # Remove RPATH
+ sed -i "s/settings\\['runtime_library_dirs'\\] = settings\\['library_dirs'\\]/pass/" ${_pkg}-${pkgver}/setup_build.py
+
+ 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 || warning "Tests failed"
+
+ cd ../${_pkg}-${pkgver}-py2
+ python2 setup.py test || warning "Tests failed"
+}
+
+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