mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
40 lines
1.2 KiB
Text
40 lines
1.2 KiB
Text
# Contributor: Anjandev Momi <anjan@momi.ca>
|
|
# Maintainer: Anjandev Momi <anjan@momi.ca>
|
|
pkgname=py3-osqp
|
|
pkgver=0.6.2
|
|
pkgrel=2
|
|
pkgdesc="python interface for OSQP"
|
|
url="https://osqp.org/"
|
|
arch="all !x86 !armv7 !armhf" # py3-qdldl doesnt compile on these arches
|
|
license="Apache-2.0"
|
|
depends="python3 py3-qdldl"
|
|
makedepends="py3-setuptools py3-wheel cmake py3-numpy-dev"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-dev"
|
|
source="osqp-python-$pkgver.tar.gz::https://github.com/osqp/osqp-python/archive/refs/tags/v$pkgver.post0.tar.gz
|
|
osqp-$pkgver.tar.gz::https://github.com/osqp/osqp/releases/download/v$pkgver/complete_sources.tar.gz"
|
|
builddir="$srcdir/osqp-python-$pkgver.post0"
|
|
options="!check" # cant get checks to work
|
|
|
|
prepare() {
|
|
default_prepare
|
|
rmdir osqp_sources
|
|
mv ../osqp osqp_sources
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
05f725069ff94b81f3fe7da4fa7b552d749bdfa5adb97f780781c27f7f2f51dd16b64d8f830cfa16bd77d2613f4e0c3f5e01dd97bf42a4d9b6a483fcd986134d osqp-python-0.6.2.tar.gz
|
|
10145d4ce9d4eb692a482e27f1bcea6cc871d1a518b0558f658d4764ebac09f633bc69598446647b775094d748fd465cfc39c09ac4525ae3f5dc65e51bf58b12 osqp-0.6.2.tar.gz
|
|
"
|