mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
main/cython: switch to gpep517
This commit is contained in:
parent
2b84490ba7
commit
3da507d3ab
@ -3,12 +3,12 @@
|
||||
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
|
||||
pkgname=cython
|
||||
pkgver=0.29.36
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Cython is an optimising static compiler for both the Python & the extended Cython programming languages."
|
||||
url="https://cython.org/"
|
||||
arch="all"
|
||||
license="Apache-2.0"
|
||||
makedepends="py3-setuptools python3-dev"
|
||||
makedepends="py3-gpep517 py3-setuptools py3-wheel python3-dev"
|
||||
depends="python3"
|
||||
subpackages="cython-pyc cython-doc"
|
||||
source="cython-$pkgver.tar.gz::https://github.com/cython/cython/archive/$pkgver.tar.gz"
|
||||
@ -21,15 +21,17 @@ arm*)
|
||||
esac
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 runtests.py -j${JOBS:-$(nproc)}
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
.testenv/bin/python3 -m installer .dist/*.whl
|
||||
.testenv/bin/python3 runtests.py -j${JOBS:-$(nproc)}
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
python3 -m installer -d "$pkgdir" .dist/*.whl
|
||||
|
||||
install -Dm 644 LICENSE.txt "$pkgdir/usr/share/licenses/cython/license"
|
||||
install -Dm 644 README.rst "$pkgdir/usr/share/doc/cython/readme.rst"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user