[arch-commits] Commit in python-mpi4py/repos (4 files)
Anatol Pomozov
anatolik at archlinux.org
Wed Jun 14 07:24:41 UTC 2017
Date: Wednesday, June 14, 2017 @ 07:24:41
Author: anatolik
Revision: 236725
archrelease: copy trunk to community-staging-x86_64, community-staging-i686
Added:
python-mpi4py/repos/community-staging-i686/
python-mpi4py/repos/community-staging-i686/PKGBUILD
(from rev 236724, python-mpi4py/trunk/PKGBUILD)
python-mpi4py/repos/community-staging-x86_64/
python-mpi4py/repos/community-staging-x86_64/PKGBUILD
(from rev 236724, python-mpi4py/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 64 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 64 ++++++++++++++++++++++++++++++++++++
2 files changed, 128 insertions(+)
Copied: python-mpi4py/repos/community-staging-i686/PKGBUILD (from rev 236724, python-mpi4py/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-06-14 07:24:41 UTC (rev 236725)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Anatol Pomozov
+# Contributor: Tim Hütz <tim at huetz.biz>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Sebastien Binet <binet at cern.ch>
+
+pkgbase=python-mpi4py
+pkgname=(python-mpi4py python2-mpi4py)
+pkgver=2.0.0
+pkgrel=3
+pkgdesc='Python bindings for the Message Passing Interface (MPI) standard'
+arch=(x86_64 i686)
+url='https://planet.scipy.org/'
+license=(BSD)
+makedepends=(python-setuptools python2-setuptools openmpi)
+source=(https://bitbucket.org/mpi4py/mpi4py/get/6e9f90c47a53.zip)
+
+# pipy 2.0.0 is not openmpi 2.x compatible
+# thus use the trunk per upstream recomendation https://bitbucket.org/mpi4py/mpi4py/issues/50/is-new-release-210-coming#comment-37501124
+#https://pypi.python.org/packages/source/m/mpi4py/mpi4py-$pkgver.tar.gz)
+sha1sums=('b62a6175e778f2a292109b9ad6339951c67f4e41')
+
+prepare() {
+ mv mpi4py-mpi4py-6e9f90c47a53 mpi4py-$pkgver
+
+ # fix for https://bitbucket.org/mpi4py/mpi4py/issues/28/test_dltestdl-test-failure
+ sed -e 's/libm.so/libm.so.6/' -i mpi4py-$pkgver/test/test_dl.py
+
+ cp -a mpi4py-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/mpi4py-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/mpi4py-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/mpi4py-$pkgver-py2"
+ # fails with openmpi 2.1.1, temporary disable it
+ #python2 setup.py test
+
+ cd "$srcdir/mpi4py-$pkgver"
+ # fails with openmpi 2.1.1, temporary disable it
+ #python setup.py test
+}
+
+package_python-mpi4py() {
+ depends=(python openmpi)
+
+ cd "$srcdir/mpi4py-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+package_python2-mpi4py() {
+ depends=(python2 openmpi)
+
+ cd "$srcdir/mpi4py-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
Copied: python-mpi4py/repos/community-staging-x86_64/PKGBUILD (from rev 236724, python-mpi4py/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-06-14 07:24:41 UTC (rev 236725)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Anatol Pomozov
+# Contributor: Tim Hütz <tim at huetz.biz>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
+# Contributor: Sebastien Binet <binet at cern.ch>
+
+pkgbase=python-mpi4py
+pkgname=(python-mpi4py python2-mpi4py)
+pkgver=2.0.0
+pkgrel=3
+pkgdesc='Python bindings for the Message Passing Interface (MPI) standard'
+arch=(x86_64 i686)
+url='https://planet.scipy.org/'
+license=(BSD)
+makedepends=(python-setuptools python2-setuptools openmpi)
+source=(https://bitbucket.org/mpi4py/mpi4py/get/6e9f90c47a53.zip)
+
+# pipy 2.0.0 is not openmpi 2.x compatible
+# thus use the trunk per upstream recomendation https://bitbucket.org/mpi4py/mpi4py/issues/50/is-new-release-210-coming#comment-37501124
+#https://pypi.python.org/packages/source/m/mpi4py/mpi4py-$pkgver.tar.gz)
+sha1sums=('b62a6175e778f2a292109b9ad6339951c67f4e41')
+
+prepare() {
+ mv mpi4py-mpi4py-6e9f90c47a53 mpi4py-$pkgver
+
+ # fix for https://bitbucket.org/mpi4py/mpi4py/issues/28/test_dltestdl-test-failure
+ sed -e 's/libm.so/libm.so.6/' -i mpi4py-$pkgver/test/test_dl.py
+
+ cp -a mpi4py-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/mpi4py-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/mpi4py-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/mpi4py-$pkgver-py2"
+ # fails with openmpi 2.1.1, temporary disable it
+ #python2 setup.py test
+
+ cd "$srcdir/mpi4py-$pkgver"
+ # fails with openmpi 2.1.1, temporary disable it
+ #python setup.py test
+}
+
+package_python-mpi4py() {
+ depends=(python openmpi)
+
+ cd "$srcdir/mpi4py-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+package_python2-mpi4py() {
+ depends=(python2 openmpi)
+
+ cd "$srcdir/mpi4py-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
More information about the arch-commits
mailing list