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-lmfit/PKGBUILD | 44 +++++++++++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 11 deletions(-) (limited to 'python-lmfit/PKGBUILD') diff --git a/python-lmfit/PKGBUILD b/python-lmfit/PKGBUILD index b7265163..88e5790d 100644 --- a/python-lmfit/PKGBUILD +++ b/python-lmfit/PKGBUILD @@ -5,28 +5,44 @@ pkgbase=python-lmfit _pkgname=lmfit-py pkgname=('python-lmfit' 'python2-lmfit') pkgver=0.9.11 -pkgrel=1 +pkgrel='2' pkgdesc="Least-Squares Minimization with Constraints for Python" arch=('any') url="http://lmfit.github.io/lmfit-py/" license=('BSD') +_deppy2=( + 'python2>=2.7' + 'python2<2.8' +) +_deppy=( + 'python>=3.7' + 'python<3.8' +) _depends=( 'python-asteval>=0.9.12' 'python-numpy>=1.10' 'python-scipy>=0.17' 'python-six>1.10' - 'python-uncertainties>=3.0') + 'python-uncertainties>=3.0' +) _makedepends=( - 'python-setuptools') + 'python-setuptools' +) _checkdepends=( - 'python-nose') + 'python-nose' +) makedepends=( - "${_depends[@]}" "${_depends[@]/python/python2}" - "${_makedepends[@]}" "${_makedepends[@]/python/python2}" - ) + "${_deppy[@]}" + "${_deppy2[@]}" + "${_depends[@]}" + "${_depends[@]/python/python2}" + "${_makedepends[@]}" + "${_makedepends[@]/python/python2}" +) checkdepends=( - "${_checkdepends[@]}" "${_checkdepends[@]/python/python2}" - ) + "${_checkdepends[@]}" + "${_checkdepends[@]/python/python2}" +) source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/lmfit/lmfit-py/archive/${pkgver}.tar.gz") sha512sums=('e0fdbc0b969a53d94939b7d9821d0ef2f718d39481dcaabc2a24af239b5cf24bcb058579f7555854144757ea6f9ef7b458b71b64d8af5e1881037012aa774662') @@ -51,13 +67,19 @@ check() { } package_python-lmfit(){ - depends=("${_depends[@]}") + depends=( + "${_deppy[@]}" + "${_depends[@]}" + ) cd "$srcdir/lmfit-py-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 } package_python2-lmfit(){ - depends=("${_depends[@]/python/python2}") + depends=( + "${_deppy2[@]}" + "${_depends[@]/python/python2}" + ) cd "$srcdir/lmfit-py2-$pkgver" python2 setup.py install --root="$pkgdir/" --optimize=1 } -- cgit v1.2.3-70-g09d2