summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnavigator2019-11-24 23:00:14 +0100
committerbnavigator2019-11-24 23:00:14 +0100
commit32c80b3df9bf6506fefb9b63760693620370a544 (patch)
tree6df2250f1e01e499e160d898725eef06c80324a0
parent79a61e3210429199afdf735e89dfa4f3550ebf79 (diff)
downloadaur-32c80b3df9bf6506fefb9b63760693620370a544.tar.gz
remove python 2 support
-rw-r--r--PKGBUILD36
1 files changed, 6 insertions, 30 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ec750de0563..f45290e1e06 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,16 @@
-# Maintainer: Ben Greiner <code-arch at bnavigator dot de>
_name=slycot
-pkgname=("python-${_name}" "python2-${_name}")
+pkgname="python-${_name}"
pkgver=0.3.5.0
-pkgrel=1
+pkgrel=2
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"
license=('GPL2')
-depends=('python-numpy' 'python2-numpy')
+depends=('python-numpy')
makedepends=('git' 'cmake' 'gcc-fortran' 'lapack'
'python-scikit-build>=0.8.1'
- 'python2-scikit-build>=0.8.1'
- 'python-nose' 'python2-nose'
- 'python-coverage' 'python2-coverage'
- 'python2-configparser')
+ 'python-nose'
+ 'python-coverage')
opts=(!strip)
optdepends=()
provides=('python-slycot')
@@ -21,16 +18,9 @@ conflicts=('python-slycot-git')
source=(https://files.pythonhosted.org/packages/source/s/$_name/$_name-$pkgver.tar.gz)
sha256sums=('cad98d5ea4f0a034cf398c39189f587620a0b03f1d4b71e77cd622a327f13adf')
-prepare() {
- cp -a ${_name}-$pkgver{,-py2}
-}
-
build() {
cd "$srcdir/${_name}-${pkgver}"
python setup.py build -G "Unix Makefiles" -- -DF2PY_EXECUTABLE=/usr/bin/f2py3
-
- cd "$srcdir/${_name}-${pkgver}-py2"
- python2 setup.py build -G "Unix Makefiles" -- -DF2PY_EXECUTABLE=/usr/bin/f2py2
}
check() {
@@ -39,13 +29,9 @@ check() {
cd "$srcdir/${_name}-${pkgver}"
export PYTHONPATH="$PWD/_skbuild/linux-$CARCH-3.7/setuptools/lib"
python runtests.py --coverage --no-build
-
- cd "$srcdir/${_name}-${pkgver}-py2"
- export PYTHONPATH="$PWD/_skbuild/linux-$CARCH-2.7/setuptools/lib"
- python2 runtests.py --coverage --no-build
}
-package_python-slycot() {
+package() {
depends=('python-numpy')
conflicts=('python-slycot-git')
@@ -55,14 +41,4 @@ package_python-slycot() {
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build -G "Unix Makefiles"
}
-package_python2-slycot() {
- depends=('python2-numpy')
- conflicts=('python2-slycot-git')
-
- export LDFLAGS="$LDFLAGS -shared"
-
- cd "$srcdir/${_name}-${pkgver}-py2"
- python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build -G "Unix Makefiles"
-}
-
# vim:set ts=2 sw=2 et: