blob: 6a26d2fd3f410f2576a0ff6f8c24d2053b76aa01 (
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
|
# Maintainer: Maximilian Stahlberg <maximilian.stahlberg tuhh de>
_name=picos
pkgname="python-${_name}"
pkgver=2.6
pkgrel=1
pkgdesc='A Python interface to conic optimization solvers'
arch=(any)
url='https://gitlab.com/picos-api/picos'
license=(GPL-3.0-or-later)
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'
'python-qics: solve using QICS'
)
makedepends=(python-setuptools python-build python-installer python-wheel)
conflicts=(python-picos-git)
source=("https://gitlab.com/picos-api/picos/-/archive/v${pkgver}/${_name}-v${pkgver}.tar.gz")
sha256sums=('4167c0c61563e571bde803efafd6255439b3bfefbb04ca3145ff5e6cf70a2299')
build() {
cd "${_name}-v${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_name}-v${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|