aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-ecos/APKBUILD
blob: 343a13b58cb22666663cce244da12741c0ee8bb2 (plain) (blame)
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
# Contributor: Anjandev Momi <anjan@momi.ca>
# Maintainer: Anjandev Momi <anjan@momi.ca>
pkgname=py3-ecos
pkgver=2.0.8
pkgrel=0
pkgdesc="python interface for ECOS"
url="https://github.com/embotech/ecos-python"
arch="all"
license="GPL-3.0-only"
depends="py3-numpy py3-scipy ecos"
makedepends="py3-setuptools ecos-dev py3-numpy-dev"
checkdepends="py3-nose"
source="ecos-python-$pkgver.tar.gz::https://github.com/embotech/ecos-python/archive/refs/tags/$pkgver.tar.gz
	use_external_ecos.patch
	"
builddir="$srcdir/ecos-python-$pkgver"
options="!check" # cannot get checks to pass

build() {
	make version
	python3 setup.py build
}

check() {
	python setup.py build_ext --inplace
	nosetests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
2bcdf5adef9d293af00d969e62bcd9f50f32ba478013cff30ca3554967e888750283a8731650556a767e3025e18b05700121a5af5af4fc492ab64e0013c23157  ecos-python-2.0.8.tar.gz
671bea0c1eadf6fe67a632af6598bc1bc48fbe2ddbdc4439f6bcc52636a9a5b43e7f1c5b7a384a737088a16f69ca3835048b562eeb4c6894a52f381d759ec6c9  use_external_ecos.patch
"