summaryrefslogtreecommitdiff
path: root/python-lmfit
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-lmfit
parentadc8fff0989b8783bb022e68a87d1bf4b0d49d0a (diff)
downloadarchlinuxewe-efc22702de0ff7fa08783283555af19359eafe8b.tar.xz
recompile all python packages
Diffstat (limited to 'python-lmfit')
-rw-r--r--python-lmfit/PKGBUILD44
1 files changed, 33 insertions, 11 deletions
diff --git a/python-lmfit/PKGBUILD b/python-lmfit/PKGBUILD
index b72651634..88e5790de 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
}