summaryrefslogtreecommitdiff
path: root/python-asteval
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-08-07 08:05:47 +0200
committerErich Eckner <git@eckner.net>2018-08-07 08:08:20 +0200
commitefc22702de0ff7fa08783283555af19359eafe8b (patch)
tree445c8511b65f62a649a4128868720eea497f100d /python-asteval
parentadc8fff0989b8783bb022e68a87d1bf4b0d49d0a (diff)
downloadarchlinuxewe.git.save-efc22702de0ff7fa08783283555af19359eafe8b.tar.xz
recompile all python packages
Diffstat (limited to 'python-asteval')
-rw-r--r--python-asteval/PKGBUILD22
1 files changed, 19 insertions, 3 deletions
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
}