2023-09-17 09:12:44 +02:00
|
|
|
# Description: Array processing for numbers, strings, records, and objects with Python
|
2023-10-06 18:44:58 +02:00
|
|
|
# URL: https://numpy.org
|
2019-08-21 10:02:52 +00:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-10-06 18:44:58 +02:00
|
|
|
# Depends on: lapack python3-cython python3-build python3-wheel python3-installer meson-python
|
2019-08-21 10:02:52 +00:00
|
|
|
|
|
|
|
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
|
2023-10-06 18:44:58 +02:00
|
|
|
source=(https://github.com/numpy/numpy/releases/download/v$version/numpy-$version.tar.gz)
|
2019-08-21 10:02:52 +00:00
|
|
|
|
|
|
|
build() {
|
2023-10-06 18:44:58 +02:00
|
|
|
cd numpy-$version
|
2019-08-21 10:02:52 +00:00
|
|
|
|
2023-10-06 18:44:58 +02:00
|
|
|
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
|
|
|
|
2023-10-06 18:44:58 +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
|
2019-08-21 10:02:52 +00:00
|
|
|
chmod -R g-w $PKG
|
|
|
|
}
|