From efc22702de0ff7fa08783283555af19359eafe8b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 7 Aug 2018 08:05:47 +0200 Subject: recompile all python packages --- python-asteval/PKGBUILD | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'python-asteval') diff --git a/python-asteval/PKGBUILD b/python-asteval/PKGBUILD index 4d961213..b36eb55c 100644 --- a/python-asteval/PKGBUILD +++ b/python-asteval/PKGBUILD @@ -4,15 +4,25 @@ pkgbase=python-asteval pkgname=('python-asteval' 'python2-asteval') pkgver=0.9.12 -pkgrel=1 +pkgrel='2' pkgdesc='Minimal Python AST Evaluator' arch=('any') url='https://newville.github.io/asteval/' license=('MIT') +_deppy2=( + 'python2>=2.7' + 'python2<2.8' +) +_deppy=( + 'python>=3.7' + 'python<3.8' +) _depends=('python' 'python-numpy>=1.6' 'python-six') _makedepends=('python-setuptools') _checkdepends=('python-nose' 'python-pytest') makedepends=( + "${_deppy[@]}" + "${_deppy2[@]}" "${_depends[@]}" "${_depends[@]/python/python2}" "${_makedepends[@]}" "${_makedepends[@]/python/python2}" ) @@ -44,13 +54,19 @@ check() { } package_python-asteval(){ - depends=("${_depends[@]}") + depends=( + "${_deppy[@]}" + "${_depends[@]}" + ) cd "$srcdir/asteval-py-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 } package_python2-asteval(){ - depends=("${_depends[@]/python/python2}") + depends=( + "${_deppy2[@]}" + "${_depends[@]/python/python2}" + ) cd "$srcdir/asteval-py2-$pkgver" python2 setup.py install --root="$pkgdir/" --optimize=1 } -- cgit v1.2.3-70-g09d2