blob: 14918d43062ca798e6acf155e78ea8e2ca0ea54f (
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
|
# Maintainer: Olivier Sobrie <olivier at sobrie dot be>
pkgname='python-optlang'
pkgdesc="Python package implementing a modeling language for solving mathematical optimization problems."
pkgver=1.8.1
pkgrel=1
arch=('any')
url='https://optlang.readthedocs.io'
license=('Apache-2.0')
_name=${pkgname#python-}
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('9eb586b69fd88d558a8a0a0eac33c3067c59b5de510fddc36c0aa874eb74bfec')
depends=('python-six>=1.9.0' 'python-sympy>=1.0.0' 'python-swiglpk>=1.4.3')
makedepends=('python-setuptools')
optdepends=(
'cplex: for CPLEX support (LP, MILP, QP, MIQP)'
'gurobi: for Gurobi support (LP, MILP, QP, MIQP)'
'python-osqp: for OSPQ support (LP, QP)'
'scip: for SCIP support (LP)'
)
build() {
cd "$_name-$pkgver"
python setup.py build
}
package() {
cd "$_name-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
}
|