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

Bruno Pagani archange at archlinux.org
Thu Dec 21 10:42:14 UTC 2017


    Date: Thursday, December 21, 2017 @ 10:42:13
  Author: archange
Revision: 275159

OpenMPI 3.0.0 rebuild

Only change is a new var exported to fix tests with this new version.
Everything else is cosmetic.

Modified:
  python-mpi4py/trunk/PKGBUILD

----------+
 PKGBUILD |   54 +++++++++++++++++++++++++++++-------------------------
 1 file changed, 29 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-21 10:08:34 UTC (rev 275158)
+++ PKGBUILD	2017-12-21 10:42:13 UTC (rev 275159)
@@ -9,48 +9,52 @@
 pkgbase=python-${_pkg}
 pkgname=(python-${_pkg} python2-${_pkg})
 pkgver=3.0.0
-pkgrel=1
-pkgdesc='Python bindings for the Message Passing Interface (MPI) standard'
-arch=('x86_64')
-url='https://bitbucket.org/mpi4py/mpi4py'
-license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools' 'openmpi')
-checkdepends=('inetutils')
+pkgrel=2
+pkgdesc="Python bindings for the Message Passing Interface (MPI) standard"
+arch=(x86_64)
+url="https://bitbucket.org/mpi4py/mpi4py"
+license=(BSD)
+makedepends=(python-setuptools python2-setuptools openmpi)
+checkdepends=(inetutils)
 source=("https://pypi.io/packages/source/m/${_pkg}/${_pkg}-${pkgver}.tar.gz")
-sha256sums=('b457b02d85bdd9a4775a097fac5234a20397b43e073f14d9e29b6cd78c68efd7')
+sha256sums=(b457b02d85bdd9a4775a097fac5234a20397b43e073f14d9e29b6cd78c68efd7)
 
 prepare() {
-  cp -a ${_pkg}-${pkgver}{,-py2}
+    cp -a ${_pkg}-${pkgver}{,-py2}
 }
 
 build() {
-  cd ${_pkg}-${pkgver}
-  python setup.py build
+    cd ${_pkg}-${pkgver}
+    python setup.py build
 
-  cd ../${_pkg}-${pkgver}-py2
-  python2 setup.py build
+    cd ../${_pkg}-${pkgver}-py2
+    python2 setup.py build
 }
 
 check() {
-  cd ${_pkg}-${pkgver}
-  python setup.py test
+    # This is required starting with OpenMPI 3.0 when trying to run more
+    # processes than the number of available cores
+    export OMPI_MCA_rmaps_base_oversubscribe=yes
 
-  cd ../${_pkg}-${pkgver}-py2
-  python2 setup.py test
+    cd ${_pkg}-${pkgver}
+    python setup.py test
+
+    cd ../${_pkg}-${pkgver}-py2
+    python2 setup.py test
 }
 
 package_python-mpi4py() {
-  depends=(python openmpi)
+    depends=(python openmpi)
 
-  cd ${_pkg}-${pkgver}
-  python setup.py install --root="${pkgdir}" --skip-build --optimize=1
-  install -Dm644 LICENSE.rst -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+    cd ${_pkg}-${pkgver}
+    python setup.py install --root="${pkgdir}" --skip-build --optimize=1
+    install -Dm644 LICENSE.rst -t "${pkgdir}"/usr/share/licenses/${pkgname}/
 }
 
 package_python2-mpi4py() {
-  depends=(python2 openmpi)
+    depends=(python2 openmpi)
 
-  cd ${_pkg}-${pkgver}-py2
-  python2 setup.py install --root="$pkgdir" --skip-build --optimize=1
-  install -Dm644 LICENSE.rst -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+    cd ${_pkg}-${pkgver}-py2
+    python2 setup.py install --root="$pkgdir" --skip-build --optimize=1
+    install -Dm644 LICENSE.rst -t "${pkgdir}"/usr/share/licenses/${pkgname}/
 }



More information about the arch-commits mailing list