mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 10:15:12 +03:00
we never use pip in the venv manually made for tests- this might break 1-2 things unexpectedly, but - those should be looked at anyway - this has a severe speedup- even on a desktop machine with nvme, this makes an arbitrary venv go from 2.6s to <100ms(!) to make. a nice small optimisation.
43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
# Maintainer: psykose <alice@ayaya.dev>
|
|
pkgname=pythran
|
|
pkgver=0.12.1
|
|
pkgrel=0
|
|
pkgdesc="Ahead of Time compiler for numeric kernels"
|
|
url="https://github.com/serge-sans-paille/pythran"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="
|
|
py3-beniget
|
|
py3-gast
|
|
py3-numpy
|
|
py3-ply
|
|
python3
|
|
"
|
|
makedepends="py3-gpep517 py3-setuptools python3-dev py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/serge-sans-paille/pythran/archive/refs/tags/$pkgver.tar.gz
|
|
arm-hwcap.patch
|
|
"
|
|
options="!check" # tests loop forever
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 -m installer dist/*.whl
|
|
testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
05c4e1d03de3eebccbb915e13c70a36de293152aece58066f2d91d483d3ac920d61c7a76adcb2337f60e637734451775f0fc61341b0ef9fc4f074a752e39de9d pythran-0.12.1.tar.gz
|
|
25ac033c493f9beec68197c4c5c351921de3d7ca65010c32eaed1f0325a676dba2afa3e2d548bb1e528dfb035fb993bacf15ee2532eca7c212a663aa6d8b43c1 arm-hwcap.patch
|
|
"
|