blob: 1d5454fb159d24c9fbbf285475e047194354b7ac (
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
46
47
48
49
50
51
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
_pyname=qdldl-python
pkgname=python-qdldl
pkgver=0.1.7.post5
pkgrel=2
pkgdesc='Python interface to the QDLDL free LDL factorization routine for quasi-definite linear systems'
url='https://github.com/oxfordcontrol/qdldl-python/'
license=(Apache-2.0)
arch=(x86_64)
depends=(gcc-libs
glibc
python
python-scipy)
makedepends=(cmake
git
pybind11
python-build
python-installer
python-setuptools
python-wheel)
checkdepends=(python-pytest)
source=(git+https://github.com/osqp/$_pyname#tag=v$pkgver
git+https://github.com/oxfordcontrol/qdldl)
sha256sums=('97a009c64d5081e61473b382210d64066256713e6761e4be331b81c4f1c23b57'
'SKIP')
prepare() {
cd $_pyname
git submodule init
git submodule set-url c/qdldl "$srcdir"/qdldl
git -c protocol.file.allow=always submodule update
}
build() {
cd $_pyname
python -m build --wheel --no-isolation --skip-dependency-check
}
check() {
cd $_pyname
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
test-env/bin/python -m pytest -v
}
package() {
cd $_pyname
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
|