[arch-commits] Commit in python2-numexpr/trunk (PKGBUILD)

Andrzej Giniewicz aginiewicz at nymeria.archlinux.org
Sun May 12 05:26:50 EDT 2013


    Date: Sunday, May 12, 2013 @ 11:26:50
  Author: aginiewicz
Revision: 90420

upgpkg: python-numexpr 2.1-1

update, also numexpr now supports python 3 so made this split pkg

Modified:
  python2-numexpr/trunk/PKGBUILD

----------+
 PKGBUILD |   39 ++++++++++++++++++++++++++++-----------
 1 file changed, 28 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-12 09:09:05 UTC (rev 90419)
+++ PKGBUILD	2013-05-12 09:26:50 UTC (rev 90420)
@@ -2,29 +2,36 @@
 # Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
 # Contributor: Sebastien Binet <binet at lblbox>
 
-pkgname=python2-numexpr
-pkgver=2.0.1
-pkgrel=2
+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')
-depends=('python2-numpy')
-makedepends=('python2-distribute')
-provides=('python-numexpr') # temporary compatibility because of rename
-replaces=('python-numexpr') # (there is no python 3 version yet)
+makedepends=('python2-distribute' 'python-distribute' 'python-numpy' 'python2-numpy')
 source=(http://numexpr.googlecode.com/files/numexpr-$pkgver.tar.gz)
-md5sums=('5cdc05c2ef8761daeae8a3182e468ba4')
+md5sums=('8c138e81fb4214d05453da0fc88bf0d5')
 
 build() {
-  cd "$srcdir"/numexpr-$pkgver
+  cd "$srcdir"
+  cp -a numexpr-$pkgver numexpr-py2-$pkgver
 
+  msg "Building Python2"
+  cd "$srcdir"/numexpr-py2-$pkgver
   python2 setup.py build
-}
 
-package() {
+  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|" \
@@ -33,3 +40,13 @@
   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