summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnavigator2019-12-01 16:18:19 +0100
committerbnavigator2019-12-01 16:18:19 +0100
commitf28c68433cbd556ce36172dc46e4e481ad752493 (patch)
tree1242d8b6d8a6fbaf906d9c78a6bc706b8d182b5d
parentca1978cc54ef14a71550eb8ff1fdf0f67a9a87d4 (diff)
downloadaur-f28c68433cbd556ce36172dc46e4e481ad752493.tar.gz
make python minor version agnostic
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD3
2 files changed, 3 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3355c622d8c..d08fe29b220 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-slycot
pkgdesc = Python wrapper for selected SLICOT routines, notably including solvers for Riccati, Lyapunov and Sylvester equations.
pkgver = 0.3.5.0
- pkgrel = 2
+ pkgrel = 3
url = http://github.com/python-control/Slycot
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index f45290e1e06..4086dd766b2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -27,7 +27,8 @@ check() {
export PYTHONDONTWRITEBYTECODE=1
cd "$srcdir/${_name}-${pkgver}"
- export PYTHONPATH="$PWD/_skbuild/linux-$CARCH-3.7/setuptools/lib"
+ local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ export PYTHONPATH="$PWD/_skbuild/linux-$CARCH-${python_version}/setuptools/lib"
python runtests.py --coverage --no-build
}