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

Andrzej Giniewicz aginiewicz at archlinux.org
Mon Aug 19 17:57:02 UTC 2019


    Date: Monday, August 19, 2019 @ 17:57:02
  Author: aginiewicz
Revision: 500199

upgpkg: python-numexpr 2.7.0-1

python-numexpr: new upstream release, drop python 2 support due to EOL in 2020

Modified:
  python-numexpr/trunk/PKGBUILD

----------+
 PKGBUILD |   44 ++++++--------------------------------------
 1 file changed, 6 insertions(+), 38 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-19 17:52:05 UTC (rev 500198)
+++ PKGBUILD	2019-08-19 17:57:02 UTC (rev 500199)
@@ -1,56 +1,24 @@
 # Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
 # Contributor: Sebastien Binet <binet at lblbox>
 
-pkgbase=python-numexpr
-pkgname=('python2-numexpr' 'python-numexpr')
-pkgver=2.6.9
+pkgname=python-numexpr
+pkgver=2.7.0
 pkgrel=1
 pkgdesc="Fast numerical array expression evaluator for Python, NumPy, PyTables, pandas"
 url="https://github.com/pydata/numexpr"
 arch=('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)
-sha1sums=('db6cbb412fb1f85f87814002b88d0e479cf3ac51')
+depends=('python-numpy')
+makedepends=('python-setuptools')
+source=($pkgname-$pkgver.tar.gz::https://github.com/pydata/numexpr/archive/v$pkgver.tar.gz)
+sha256sums=('1923f038b90cc69635871968ed742be7775c879451c612f173c2547c823c9561')
 
-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