contrib/python3-numpy/Pkgfile

27 lines
781 B
Plaintext
Raw Normal View History

2023-09-17 09:12:44 +02:00
# Description: Array processing for numbers, strings, records, and objects with Python
# URL: https://numpy.org
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: lapack python3-cython python3-build python3-wheel python3-installer meson-python
name=python3-numpy
2023-11-13 06:51:15 +01:00
version=1.26.2
2023-10-15 00:05:06 +02:00
release=1
source=(https://github.com/numpy/numpy/releases/download/v$version/numpy-$version.tar.gz)
build() {
cd numpy-$version
CFLAGS+=" -ffat-lto-objects" \
CXXFLAGS+=" -ffat-lto-objects" \
/usr/bin/python3 -m build --wheel --no-isolation \
-Csetup-args="-Dblas=blas" \
-Csetup-args="-Dlapack=lapack"
2023-09-17 09:12:44 +02:00
/usr/bin/python3 -m installer --destdir=$PKG dist/*.whl
2019-12-29 16:55:04 +01:00
find $PKG \( \
-iname "LICENSE.txt" -o \
-iname "*README*" \
\) -delete
chmod -R g-w $PKG
}