blob: b57ea0a3ad4adcf2340ea7cff67c9d816c0899d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Maximilian Stahlberg <maximilian.stahlberg tu-berlin de>
pkgname=python-picos-git
pkgver=2.3.r0.g11b4ff3
pkgrel=1
pkgdesc='A Python interface to conic optimization solvers. Git version.'
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'
'python-osqp: solve using OSQP'
)
makedepends=('git' 'python-setuptools')
provides=('python-picos')
conflicts=('python-picos')
source=("git+https://gitlab.com/picos-api/picos.git")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/picos"
./version.py --aur
}
build() {
cd "${srcdir}/picos"
python setup.py build
}
check() {
cd "${srcdir}/picos/build/lib"
python -Bc "import picos"
}
package() {
cd "${srcdir}/picos"
python setup.py install --root=${pkgdir} --optimize=1 --skip-build
}
|