Newer
Older
# Contributor: Philipp Arras <c@philipp-arras.de>
# Maintainer: Philipp Arras <c@philipp-arras.de>
maintainer="Philipp Arras <c@philipp-arras.de>"
pkgdesc="Efficient algorithms for Fast Fourier transforms and more"
url="https://gitlab.mpcdf.mpg.de/mtr/ducc"
arch="all !x86" # x86 currently broken. To be fixed upstream.
license="GPL-2.0-or-later"
depends="python3"
makedepends="
py3-gpep517
py3-pybind11-dev
py3-setuptools
py3-wheel
python3-dev
"
checkdepends="py3-pytest-xdist py3-numpy"
source="https://gitlab.mpcdf.mpg.de/mtr/ducc/-/archive/$_pynametag/ducc-$_pynametag.tar.gz"
builddir="$srcdir/ducc-$_pynametag"
build() {
DUCC0_OPTIMIZATION=portable \
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest -n auto python/test
DUCC0_OPTIMIZATION=portable \
python3 -m installer -d "$pkgdir" \
.dist/*.whl
dfa87d2f9874c703bd3a9357fa82d52f9fed5048176489e235e0a41085b85a02a389a8e22cc9ff9c756216920008d9fbe5a69ac5c0e981cbcca6793e376f12ac ducc-ducc0_0_37_0.tar.gz