Skip to content
Snippets Groups Projects
Commit 3da507d3 authored by omni's avatar omni Committed by Andy Postnikov
Browse files

main/cython: switch to gpep517

parent 2b84490b
1 merge request!54194main/cython: switch to gpep517
Pipeline #190223 skipped
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment