Last active
July 11, 2024 17:01
-
-
Save jclds139/e8e8b43c4c20c934bb52d1917819fe1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Carlos Aznarán <caznaranl@uni.pe> | |
# Contributor: Antony Lee <anntzer.lee@gmail.com> | |
# Contributor: Jesse Codling <codling@umich.edu> | |
_base=pyFFTW | |
pkgname=python-${_base,,} | |
pkgver=0.14.0 | |
pkgrel=1 | |
pkgdesc="A pythonic wrapper around FFTW" | |
arch=(x86_64 aarch64) | |
url="https://github.com/${_base}/${_base}" | |
license=(BSD-3-Clause) | |
depends=(fftw python-numpy openmp) | |
makedepends=(python-build python-installer python-setuptools python-wheel cython) | |
checkdepends=(python-pytest python-scipy python-dask) | |
optdepends=('python-scipy: scipy.fftpack support' | |
'python-dask: dask.fft support') | |
source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) | |
sha512sums=('49646c42cb26aff3266d7b9e158ce75598bb9e2b45d16dd702345c05572045214cbc4823f279e7351b687a259c248a40726752b57b7bf4d5108f499ef297bf38') | |
build() { | |
cd ${_base}-${pkgver} | |
CFLAGS="$CFLAGS -Wno-incompatible-pointer-types" | |
# don't overwrite other entries in $CFLAGS | |
python setup.py \ | |
build_ext \ | |
--include-dirs=/usr/include \ | |
--library-dirs=/usr/lib \ | |
--inplace | |
python -m build --wheel --skip-dependency-check --no-isolation | |
} | |
check() { | |
cd ${_base}-${pkgver} | |
python -m venv --system-site-packages test-env | |
test-env/bin/python -m installer dist/*.whl | |
test-env/bin/python -m pytest | |
} | |
package() { | |
cd ${_base}-${pkgver} | |
python -m installer --destdir="${pkgdir}" dist/*.whl | |
install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}" | |
} | |
# Maintainer: Carlos Aznarán <caznaranl@uni.pe> | |
# Contributor: Antony Lee <anntzer.lee@gmail.com> | |
# Contributor: Jesse Codling <codling@umich.edu> | |
_base=pyFFTW | |
pkgname=python-${_base,,} | |
pkgver=0.14.0 | |
pkgrel=1 | |
pkgdesc="A pythonic wrapper around FFTW" | |
arch=(x86_64 aarch64) | |
url="https://github.com/${_base}/${_base}" | |
license=(BSD-3-Clause) | |
depends=(fftw python-numpy openmp) | |
makedepends=(python-build python-installer python-setuptools python-wheel cython) | |
checkdepends=(python-pytest python-scipy python-dask) | |
optdepends=('python-scipy: scipy.fftpack support' | |
'python-dask: dask.fft support') | |
source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) | |
sha512sums=('49646c42cb26aff3266d7b9e158ce75598bb9e2b45d16dd702345c05572045214cbc4823f279e7351b687a259c248a40726752b57b7bf4d5108f499ef297bf38') | |
build() { | |
cd ${_base}-${pkgver} | |
CFLAGS="$CFLAGS -Wno-incompatible-pointer-types" | |
# don't overwrite other entries in $CFLAGS | |
python setup.py \ | |
build_ext \ | |
--include-dirs=/usr/include \ | |
--library-dirs=/usr/lib \ | |
--inplace | |
python -m build --wheel --skip-dependency-check --no-isolation | |
} | |
check() { | |
cd ${_base}-${pkgver} | |
python -m venv --system-site-packages test-env | |
test-env/bin/python -m installer dist/*.whl | |
test-env/bin/python -m pytest | |
} | |
package() { | |
cd ${_base}-${pkgver} | |
python -m installer --destdir="${pkgdir}" dist/*.whl | |
install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment