2019-08-21 10:02:52 +00:00
|
|
|
# Description: Array processing for numbers, strings, records, and objects with Python.
|
2020-06-01 15:45:48 +00:00
|
|
|
# URL: https://numpy.org/
|
2019-08-21 10:02:52 +00:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-04-23 17:41:20 +02:00
|
|
|
# Depends on: lapack python3-build python3-cython python3-installer python3-wheel
|
2019-08-21 10:02:52 +00:00
|
|
|
|
|
|
|
name=python3-numpy
|
2023-04-23 17:41:20 +02:00
|
|
|
version=1.24.3
|
2020-04-20 07:28:31 +00:00
|
|
|
release=1
|
2019-08-21 10:02:52 +00:00
|
|
|
source=(https://github.com/${name#*-}/${name#*-}/releases/download/v$version/${name#*-}-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
export CFLAGS+=' -fno-strict-aliasing'
|
|
|
|
export ATLAS=None
|
|
|
|
export LDFLAGS="$LDFLAGS -shared"
|
|
|
|
|
2022-01-15 15:50:02 +01:00
|
|
|
## broken port, this requires an older setuptools
|
2019-08-21 10:02:52 +00:00
|
|
|
cd ${name#*-}-$version
|
2022-07-10 18:42:01 +02:00
|
|
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
|
|
|
/usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
|
2019-08-21 10:02:52 +00:00
|
|
|
|
|
|
|
local pyv="$(python3 -c "import sys; print (sys.version_info[0], sys.version_info[1])" | sed -e 's/\ /./g')"
|
|
|
|
rm $PKG/usr/lib/python$pyv/site-packages/numpy/LICENSE.txt
|
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
|
|
|
|
}
|