[arch-commits] Commit in python-mpi4py/repos/community-x86_64 (PKGBUILD PKGBUILD)
Bruno Pagani
archange at archlinux.org
Wed Nov 15 13:55:25 UTC 2017
Date: Wednesday, November 15, 2017 @ 13:55:23
Author: archange
Revision: 266874
archrelease: copy trunk to community-x86_64
Added:
python-mpi4py/repos/community-x86_64/PKGBUILD
(from rev 266873, python-mpi4py/trunk/PKGBUILD)
Deleted:
python-mpi4py/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 120 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 56 insertions(+), 64 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2017-11-15 13:55:10 UTC (rev 266873)
+++ PKGBUILD 2017-11-15 13:55:23 UTC (rev 266874)
@@ -1,64 +0,0 @@
-# $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-x86_64/PKGBUILD (from rev 266873, python-mpi4py/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-11-15 13:55:23 UTC (rev 266874)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: 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>
+
+_pkg=mpi4py
+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')
+source=("https://pypi.io/packages/source/m/${_pkg}/${_pkg}-${pkgver}.tar.gz")
+sha256sums=('b457b02d85bdd9a4775a097fac5234a20397b43e073f14d9e29b6cd78c68efd7')
+
+prepare() {
+ cp -a ${_pkg}-${pkgver}{,-py2}
+}
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+
+ cd ../${_pkg}-${pkgver}-py2
+ python2 setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ python setup.py test
+
+ cd ../${_pkg}-${pkgver}-py2
+ python2 setup.py test
+}
+
+package_python-mpi4py() {
+ 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}/
+}
+
+package_python2-mpi4py() {
+ 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}/
+}
More information about the arch-commits
mailing list