summaryrefslogtreecommitdiff
path: root/community/python-numexpr
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-13 01:16:28 -0700
committerroot <root@rshg054.dnsready.net>2013-05-13 01:16:28 -0700
commit66cb4a487ad73063c6b000279a5d5558fb7603f5 (patch)
treeee73bbc414ba8aec6b9a578578ceaabd38fff01e /community/python-numexpr
parent5b9e0d821dd428792bd51ed03af2b800924ce69d (diff)
Mon May 13 01:16:27 PDT 2013
Diffstat (limited to 'community/python-numexpr')
-rw-r--r--community/python-numexpr/PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/community/python-numexpr/PKGBUILD b/community/python-numexpr/PKGBUILD
new file mode 100644
index 000000000..ac6d8d3fa
--- /dev/null
+++ b/community/python-numexpr/PKGBUILD
@@ -0,0 +1,52 @@
+# $Id: PKGBUILD 90422 2013-05-12 09:41:18Z aginiewicz $
+# Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
+# Contributor: Sebastien Binet <binet@lblbox>
+
+pkgbase=python-numexpr
+pkgname=('python2-numexpr' 'python-numexpr')
+pkgver=2.1
+pkgrel=1
+pkgdesc="A JIT compiler for Python expressions"
+url="http://code.google.com/p/numexpr/"
+arch=('i686' 'x86_64')
+license=('MIT')
+makedepends=('python2-distribute' 'python-distribute' 'python-numpy' 'python2-numpy')
+source=(http://numexpr.googlecode.com/files/numexpr-$pkgver.tar.gz)
+md5sums=('8c138e81fb4214d05453da0fc88bf0d5')
+
+build() {
+ cd "$srcdir"
+ cp -a numexpr-$pkgver numexpr-py2-$pkgver
+
+ msg "Building Python2"
+ cd "$srcdir"/numexpr-py2-$pkgver
+ python2 setup.py build
+
+ msg "Building Python3"
+ cd "$srcdir"/numexpr-$pkgver
+ python setup.py build
+}
+
+package_python2-numexpr() {
+ depends=('python2-numpy')
+
+ cd "$srcdir"/numexpr-py2-$pkgver
+
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+ sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/python2|" \
+ $(find "${pkgdir}" -name '*.py')
+
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python-numexpr() {
+ depends=('python-numpy')
+
+ cd "$srcdir"/numexpr-$pkgver
+
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+