blob: 11b679e90d36ffc1468aff9f01e9655bd9b91133 (
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
|
# Maintainer: Ahmed Allibhoy aallibho@eng.ucsd.edu
pkgname=python-disropt-git
pkgver=r35.ea9d7b4
pkgrel=1
pkgdesc="Python Framework for Distributed Optimization"
arch=('x86_64')
url="https://disropt.github.io/disropt/"
license=('GPL3')
source=("git+https://github.com/DISROPT/disropt")
sha256sums=('SKIP')
makedepends=('git')
pkgver() {
cd ${srcdir}/disropt
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd ${srcdir}/disropt
python setup.py build
}
package() {
depends=('python-numpy' 'python-scipy' 'python-mpi4py' 'python-autograd')
optdepends=('python-osqp' 'python-cvxopt' 'python-cvxpy')
cd ${srcdir}/disropt
python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}
|