[arch-commits] Commit in python-cvxopt/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Wed Jan 1 23:42:43 UTC 2020
Date: Wednesday, January 1, 2020 @ 23:42:42
Author: arojas
Revision: 545994
Drop python2
Modified:
python-cvxopt/trunk/PKGBUILD
----------+
PKGBUILD | 41 +++++++++--------------------------------
1 file changed, 9 insertions(+), 32 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-01 23:39:21 UTC (rev 545993)
+++ PKGBUILD 2020-01-01 23:42:42 UTC (rev 545994)
@@ -4,55 +4,32 @@
# Contributor: Lex Black <autumn-wind at web dot de>
# Contributor: Gustavao A. Gomez Farhat <gustavo_gomez_farhat_at_gmail_dot_com>
-pkgbase=python-cvxopt
-pkgname=('python2-cvxopt' 'python-cvxopt')
+pkgname=python-cvxopt
pkgver=1.2.3
pkgrel=3
pkgdesc="A free software package for convex optimization written in Python"
url="https://cvxopt.org/"
arch=('x86_64')
-license=('GPL3')
-makedepends=('gsl' 'fftw' 'glpk' 'dsdp' 'python-setuptools' 'python2-setuptools' 'suitesparse')
+license=(GPL3)
+depends=(python suitesparse)
+makedepends=(gsl fftw glpk dsdp python-setuptools suitesparse)
optdepends=('gsl: for custom random number generators'
'fftw: for FFTW interface'
'glpk: solver for linear cone and PWL programming problems'
'dsdp: solver for linear cone semidefinite programming problems')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/cvxopt/cvxopt/archive/${pkgver}.tar.gz")
-sha1sums=('fa566af5ff09088d2a73d219febea1d896c06c9d')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/cvxopt/cvxopt/archive/${pkgver}.tar.gz")
+sha256sums=('537d6abc056ae293879b376de47b40235999c91cbeab6a45bad046fe1c56dbe3')
-prepare() {
- cd "$srcdir"
- cp -a cvxopt-${pkgver} cvxopt-py2-${pkgver}
-}
-
build() {
- cd "$srcdir"/cvxopt-$pkgver
+ cd cvxopt-$pkgver
for lib in GSL FFTW GLPK DSDP; do
eval "export $'CVXOPT_BUILD_$lib'=1"
done
-
- msg "Building Python2"
- cd "$srcdir"/cvxopt-py2-${pkgver}
- python2 setup.py build
-
- msg "Building Python3"
- cd "$srcdir"/cvxopt-${pkgver}
python setup.py build
}
-package_python2-cvxopt() {
- depends=("python2" "suitesparse")
-
- cd "$srcdir"/cvxopt-py2-${pkgver}
-
- python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
-}
-
-package_python-cvxopt() {
- depends=("python" "suitesparse")
-
- cd "$srcdir"/cvxopt-${pkgver}
-
+package() {
+ cd cvxopt-${pkgver}
python setup.py install --skip-build --root="$pkgdir" --optimize=1
}
More information about the arch-commits
mailing list