summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbnavigator2020-05-30 23:08:57 +0200
committerbnavigator2020-05-30 23:08:57 +0200
commitd8aaaeb5f5af97e43feb465f950e2636ec1e799a (patch)
tree06a2af7525f861c39a3fc34102f0403500df41f1 /PKGBUILD
parent3c099a12a5f97be6b6bfd218c7f50f7ea6e96e53 (diff)
downloadaur-python-slycot.tar.gz
Update to 0.4.0.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 10 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d91dc0ce265..2e3719586f3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
_name=slycot
pkgname="python-${_name}"
-pkgver=0.3.5.0
-pkgrel=4
+pkgver=0.4.0.0
+pkgrel=1
pkgdesc="Python wrapper for selected SLICOT routines, notably including solvers for Riccati, Lyapunov and Sylvester equations."
arch=('i686' 'x86_64')
url="http://github.com/python-control/Slycot"
@@ -12,36 +12,35 @@ makedepends=('cmake'
'lapack'
'python-coverage'
'python-distro'
- 'python-nose'
+ 'python-pytest'
+ 'python-scipy'
'python-scikit-build>=0.8.1')
opts=(!strip)
optdepends=()
provides=('python-slycot')
conflicts=('python-slycot-git')
source=(https://files.pythonhosted.org/packages/source/s/$_name/$_name-$pkgver.tar.gz)
-sha256sums=('cad98d5ea4f0a034cf398c39189f587620a0b03f1d4b71e77cd622a327f13adf')
+sha256sums=('1d9921e9b04a5b9892870fd3481f7b08e6fa083a1a3848ad262819de19eb5e02')
build() {
cd "$srcdir/${_name}-${pkgver}"
- python setup.py build -G "Unix Makefiles" -- -DF2PY_EXECUTABLE=/usr/bin/f2py3
+ python setup.py build -G "Unix Makefiles"
}
check() {
export PYTHONDONTWRITEBYTECODE=1
local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
- cd "$srcdir/${_name}-${pkgver}"
- export PYTHONPATH="$PWD/_skbuild/linux-$CARCH-$python_version/setuptools/lib"
- python runtests.py --coverage --no-build
+ export PYTHONPATH="${srcdir}/${_name}-${pkgver}/_skbuild/linux-$CARCH-$python_version/setuptools/lib"
+ pytest --pyargs slycot
}
package() {
- depends=('python-numpy')
- conflicts=('python-slycot-git')
-
export LDFLAGS="$LDFLAGS -shared"
cd "$srcdir/${_name}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build -G "Unix Makefiles"
+
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
# vim:set ts=2 sw=2 et: