[arch-commits] Commit in python-mpi4py/repos (4 files)

Anatol Pomozov anatolik at archlinux.org
Wed Oct 7 16:33:08 UTC 2015


    Date: Wednesday, October 7, 2015 @ 18:33:07
  Author: anatolik
Revision: 143303

archrelease: copy trunk to community-x86_64, community-i686

Added:
  python-mpi4py/repos/community-i686/
  python-mpi4py/repos/community-i686/PKGBUILD
    (from rev 143302, python-mpi4py/trunk/PKGBUILD)
  python-mpi4py/repos/community-x86_64/
  python-mpi4py/repos/community-x86_64/PKGBUILD
    (from rev 143302, python-mpi4py/trunk/PKGBUILD)

---------------------------+
 community-i686/PKGBUILD   |   55 ++++++++++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   55 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 110 insertions(+)

Copied: python-mpi4py/repos/community-i686/PKGBUILD (from rev 143302, python-mpi4py/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2015-10-07 16:33:07 UTC (rev 143303)
@@ -0,0 +1,55 @@
+# $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=1.3.1
+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://pypi.python.org/packages/source/m/mpi4py/mpi4py-$pkgver.tar.gz)
+sha1sums=('083a4a9b6793dfdbd852082d8b95da08bcf57290')
+
+prepare() {
+  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"
+  python2 setup.py test
+
+  cd "$srcdir/mpi4py-$pkgver"
+  # Tests fail on Python3
+  # https://bitbucket.org/mpi4py/mpi4py/issues/2/fails-test-with-py33
+  # 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.txt "$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.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}

Copied: python-mpi4py/repos/community-x86_64/PKGBUILD (from rev 143302, python-mpi4py/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-10-07 16:33:07 UTC (rev 143303)
@@ -0,0 +1,55 @@
+# $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=1.3.1
+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://pypi.python.org/packages/source/m/mpi4py/mpi4py-$pkgver.tar.gz)
+sha1sums=('083a4a9b6793dfdbd852082d8b95da08bcf57290')
+
+prepare() {
+  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"
+  python2 setup.py test
+
+  cd "$srcdir/mpi4py-$pkgver"
+  # Tests fail on Python3
+  # https://bitbucket.org/mpi4py/mpi4py/issues/2/fails-test-with-py33
+  # 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.txt "$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.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}



More information about the arch-commits mailing list