diff options
author | root <root@rshg054.dnsready.net> | 2012-10-17 01:15:52 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-10-17 01:15:52 -0700 |
commit | c84b2cd310f86dc50c4f52a5907cb17652e8c87c (patch) | |
tree | ef3dc614b68e1e6f5966a5d29f3970e27bb7c4f9 /community-testing/python-mpi4py/PKGBUILD | |
parent | 99d0ec7ebad2eda5f3a03098962e3b250e3bef4c (diff) |
Wed Oct 17 01:14:52 PDT 2012
Diffstat (limited to 'community-testing/python-mpi4py/PKGBUILD')
-rw-r--r-- | community-testing/python-mpi4py/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/community-testing/python-mpi4py/PKGBUILD b/community-testing/python-mpi4py/PKGBUILD new file mode 100644 index 000000000..74cb41ee8 --- /dev/null +++ b/community-testing/python-mpi4py/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: PKGBUILD 78088 2012-10-16 11:52:49Z allan $ +# Maintainer : Stéphane Gaudreault <stephane@archlinux.org> +# Contributor: Sebastien Binet <binet@cern.ch> + +pkgbase=python-mpi4py +pkgname=('python-mpi4py' 'python2-mpi4py') +pkgver=1.3 +pkgrel=2 +arch=('i686' 'x86_64') +url="http://mpi4py.scipy.org" +license=('BSD') +makedepends=('python' 'python2' 'python-distribute' 'python2-distribute' 'openmpi') +source=(http://mpi4py.googlecode.com/files/mpi4py-${pkgver}.tar.gz) +sha1sums=('282c1b9e35b242c9bd86126ebc5af6c70d8c2833') + +build() { + cd "${srcdir}" + cp -a mpi4py-${pkgver}{,-python2} + + # Build python 3 module + cd mpi4py-${pkgver} + python3 setup.py build + + # Build python 2 module + cd ../mpi4py-${pkgver}-python2 + python2 setup.py build +} + +package_python-mpi4py() { + pkgdesc="Python bindings of the Message Passing Interface (MPI)" + depends=('python>=3.3' 'openmpi') + + cd "${srcdir}/mpi4py-${pkgver}" + python3 setup.py install --root "${pkgdir}" --optimize=1 --skip-build +} + +package_python2-mpi4py() { + pkgdesc="Python2 bindings of the Message Passing Interface (MPI)" + depends=('python2>=2.7' 'openmpi') + + cd "${srcdir}/mpi4py-${pkgver}-python2" + python2 setup.py install --root "${pkgdir}" --optimize=1 --skip-build +} |