[arch-commits] Commit in python-numexpr/repos (4 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 17:41:25 UTC 2015
Date: Saturday, September 19, 2015 @ 19:41:25
Author: foutrelis
Revision: 141060
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
python-numexpr/repos/community-staging-i686/
python-numexpr/repos/community-staging-i686/PKGBUILD
(from rev 141059, python-numexpr/trunk/PKGBUILD)
python-numexpr/repos/community-staging-x86_64/
python-numexpr/repos/community-staging-x86_64/PKGBUILD
(from rev 141059, python-numexpr/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 57 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 57 ++++++++++++++++++++++++++++++++++++
2 files changed, 114 insertions(+)
Copied: python-numexpr/repos/community-staging-i686/PKGBUILD (from rev 141059, python-numexpr/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-09-19 17:41:25 UTC (rev 141060)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Sebastien Binet <binet at lblbox>
+
+pkgbase=python-numexpr
+pkgname=('python2-numexpr' 'python-numexpr')
+pkgver=2.4.3
+pkgrel=2
+pkgdesc="Fast numerical array expression evaluator for Python, NumPy, PyTables, pandas"
+url="https://github.com/pydata/numexpr"
+arch=('i686' 'x86_64')
+license=('MIT')
+makedepends=('python2-setuptools' 'python-setuptools' 'python-numpy' 'python2-numpy')
+source=($pkgbase-$pkgver.tar.gz::https://github.com/pydata/numexpr/archive/v$pkgver.tar.gz)
+md5sums=('4b701ee609a1faa463510c483405d24f')
+
+prepare() {
+ cd "$srcdir"
+ cp -a numexpr-$pkgver numexpr-py2-$pkgver
+ cd numexpr-py2-$pkgver
+
+ sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
+ -i $(find . -name '*.py')
+}
+
+build() {
+ 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
+
+ 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
+}
+
Copied: python-numexpr/repos/community-staging-x86_64/PKGBUILD (from rev 141059, python-numexpr/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-09-19 17:41:25 UTC (rev 141060)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Sebastien Binet <binet at lblbox>
+
+pkgbase=python-numexpr
+pkgname=('python2-numexpr' 'python-numexpr')
+pkgver=2.4.3
+pkgrel=2
+pkgdesc="Fast numerical array expression evaluator for Python, NumPy, PyTables, pandas"
+url="https://github.com/pydata/numexpr"
+arch=('i686' 'x86_64')
+license=('MIT')
+makedepends=('python2-setuptools' 'python-setuptools' 'python-numpy' 'python2-numpy')
+source=($pkgbase-$pkgver.tar.gz::https://github.com/pydata/numexpr/archive/v$pkgver.tar.gz)
+md5sums=('4b701ee609a1faa463510c483405d24f')
+
+prepare() {
+ cd "$srcdir"
+ cp -a numexpr-$pkgver numexpr-py2-$pkgver
+ cd numexpr-py2-$pkgver
+
+ sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
+ -i $(find . -name '*.py')
+}
+
+build() {
+ 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
+
+ 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
+}
+
More information about the arch-commits
mailing list