summaryrefslogtreecommitdiff
path: root/python3-numpy/Pkgfile
blob: e800bd0278fb2a1db43aacfa9ea6eebe83bf0b15 (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 openblas python3-cython
    5 
    6 name=python3-numpy
    7 version=1.19.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   cd ${name#*-}-$version
   17   /usr/bin/python3 setup.py config_fc --fcompiler=gnu95 build
   18   /usr/bin/python3 setup.py config_fc --fcompiler=gnu95 install \
   19     --prefix=/usr --root="$PKG" --optimize=1
   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 }

Generated by cgit