blob: 839e86d511508954608484c8b7f5e8f87d74c06c (
plain)
1 # Description: Array processing for numbers, strings, records, and objects with Python.
2 # URL: http://numpy.org/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Packager: Danny Rawlins, crux at romster dot me
5 # Depends on: openblas python3-cython
6
7 name=python3-numpy
8 version=1.18.0
9 release=1
10 source=(https://github.com/${name#*-}/${name#*-}/releases/download/v$version/${name#*-}-$version.tar.gz)
11
12 build() {
13 export CFLAGS+=' -fno-strict-aliasing'
14 export ATLAS=None
15 export LDFLAGS="$LDFLAGS -shared"
16
17 cd ${name#*-}-$version
18 /usr/bin/python3 setup.py config_fc --fcompiler=gnu95 build
19 /usr/bin/python3 setup.py config_fc --fcompiler=gnu95 install \
20 --prefix=/usr --root="$PKG" --optimize=1
21
22 local pyv="$(python3 -c "import sys; print (sys.version_info[0], sys.version_info[1])" | sed -e 's/\ /./g')"
23 rm $PKG/usr/lib/python$pyv/site-packages/numpy/LICENSE.txt
24 find $PKG \( \
25 -iname "LICENSE.txt" -o \
26 -iname "*README*" \
27 \) -delete
28 chmod -R g-w $PKG
29 }
|