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

Andrzej Giniewicz aginiewicz at archlinux.org
Thu Sep 4 08:26:00 UTC 2014


    Date: Thursday, September 4, 2014 @ 10:26:00
  Author: aginiewicz
Revision: 118241

upgpkg: python-numexpr 2.4-1

python-numexpr: fix mtime

Modified:
  python-numexpr/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-09-04 08:21:43 UTC (rev 118240)
+++ PKGBUILD	2014-09-04 08:26:00 UTC (rev 118241)
@@ -14,10 +14,18 @@
 source=(https://github.com/pydata/numexpr/archive/v$pkgver.tar.gz)
 md5sums=('c9357862a304b9ad614afaf9e9c8dc78')
 
-build() {
+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
@@ -34,9 +42,6 @@
 
   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
 }
 




More information about the arch-commits mailing list