summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Stahlberg2020-09-27 15:31:30 +0200
committerMaximilian Stahlberg2020-09-27 15:31:30 +0200
commit2a4d9e2187fc25ff18e762047bc08db587efdb7b (patch)
tree83f07bc7d1175ec5217b599d711d1f5c371b4d34
parent0502d6862f188c7a866c6ca4b002ee0a6bcfd9c7 (diff)
downloadaur-2a4d9e2187fc25ff18e762047bc08db587efdb7b.tar.gz
Add optional dependencies.
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD11
2 files changed, 18 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ce45f20b0b2..19bb6183b8e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,20 @@
pkgbase = python-picos
pkgdesc = A Python interface to conic optimization solvers.
pkgver = 2.0
- pkgrel = 2
+ pkgrel = 3
url = https://gitlab.com/picos-api/picos
arch = any
license = GPL3
makedepends = python-setuptools
depends = python-numpy
depends = python-cvxopt
+ optdepends = cplex: solve using CPLEX
+ optdepends = gurobi: solve using Gurobi
+ optdepends = mosek: solve using MOSEK
+ optdepends = python-ecos: solve using ECOS
+ optdepends = python-pyscipopt: solve using SCIP
+ optdepends = python-smcp: solve using SMCP
+ optdepends = python-swiglpk: solve using GLPK
conflicts = python-picos-git
source = https://gitlab.com/picos-api/picos/-/archive/v2.0/picos-v2.0.tar.gz
md5sums = 3317dc2fd98202a413acae19efdc844e
diff --git a/PKGBUILD b/PKGBUILD
index 9eab64c3e5f..33f0df28b2e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,21 @@
pkgname=python-picos
pkgver=2.0
-pkgrel=2
+pkgrel=3
pkgdesc='A Python interface to conic optimization solvers.'
arch=('any')
url='https://gitlab.com/picos-api/picos'
license=('GPL3')
depends=('python-numpy' 'python-cvxopt')
+optdepends=(
+ 'cplex: solve using CPLEX'
+ 'gurobi: solve using Gurobi'
+ 'mosek: solve using MOSEK'
+ 'python-ecos: solve using ECOS'
+ 'python-pyscipopt: solve using SCIP'
+ 'python-smcp: solve using SMCP'
+ 'python-swiglpk: solve using GLPK'
+)
makedepends=('python-setuptools')
conflicts=('python-picos-git')
source=("https://gitlab.com/picos-api/picos/-/archive/v${pkgver}/picos-v${pkgver}.tar.gz")