mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-scs: build with gpep517
This commit is contained in:
parent
65be5c06f9
commit
0ccefae4b1
@ -2,13 +2,13 @@
|
||||
# Maintainer: Anjandev Momi <anjan@momi.ca>
|
||||
pkgname=py3-scs
|
||||
pkgver=3.2.3
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="C package that solves convex cone problems via operator splitting"
|
||||
url="https://github.com/cvxgrp/scs"
|
||||
arch="all"
|
||||
license="MIT"
|
||||
depends="python3 py3-numpy py3-scipy"
|
||||
makedepends="py3-setuptools py3-numpy-dev python3-dev"
|
||||
makedepends="py3-setuptools py3-numpy-dev python3-dev py3-gpep517"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="scs-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/s/scs/scs-$pkgver.tar.gz"
|
||||
@ -16,15 +16,20 @@ builddir="$srcdir/scs-$pkgver"
|
||||
options="!check" # Cannot solve SDPs without linked blas+lapack libraries
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
PYTHONPATH=$(echo build/lib*) pytest
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
Loading…
Reference in New Issue
Block a user