blob: 6ec60539a3c3bb029af9abfdca0145f54b339948 (
plain)
1 # Description: Array processing for numbers, strings, records, and objects with Python.
2 # URL: https://numpy.org/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: lapack python3-build python3-cython python3-installer
5
6 name=python3-numpy
7 version=1.24.1
8 release=1
9 source=(https://github.com/${name#*-}/${name#*-}/releases/download/v$version/${name#*-}-$version.tar.gz)
10
11 build() {
12 export CFLAGS+=' -fno-strict-aliasing'
13 export ATLAS=None
14 export LDFLAGS="$LDFLAGS -shared"
15
16 ## broken port, this requires an older setuptools
17 cd ${name#*-}-$version
18 /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
19 /usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
20
21 local pyv="$(python3 -c "import sys; print (sys.version_info[0], sys.version_info[1])" | sed -e 's/\ /./g')"
22 rm $PKG/usr/lib/python$pyv/site-packages/numpy/LICENSE.txt
23 find $PKG \( \
24 -iname "LICENSE.txt" -o \
25 -iname "*README*" \
26 \) -delete
27 chmod -R g-w $PKG
28 }
|