mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
numpy: bump to version 2.2.1
Dropped: 003-without-vendored-meson.patch 004-workaround-for-multiple-top-level-packages-discovered.patch This time, we really need to use meson to build numpy. And to make things more complicated, the 'vendored' meson package (that comes with numpy) must be used. This is because they have some special logic in there that's specific to numpy. With this change, we also need to keep a special/internal 'openwrt-cross.txt.in' file, because cross-compiling numpy also requires that a 'longdouble_format' property be added. More details about this: https://github.com/numpy/numpy/issues/23972 https://github.com/numpy/numpy/blob/maintenance/2.2.x/doc/source/building/cross_compilation.rst Removing quirk fix for x86_64 with detecting 'avx512f'. This should work with the new meson stuff. And finally, added a test.sh script. This should make sure that this package works fine during upgrades. Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
committed by
Alexandru Ardelean
parent
dc273bfa44
commit
7b4ee2dabf
18
lang/python/numpy/test.sh
Normal file
18
lang/python/numpy/test.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
EXP_VER="$2"
|
||||
|
||||
python3 - << EOF
|
||||
import sys
|
||||
import numpy as np
|
||||
|
||||
if (np.__version__ != "$EXP_VER"):
|
||||
print("Got incorrect version: " + np.__version__)
|
||||
sys.exit(1)
|
||||
|
||||
arr = np.array([1, 2, 3, 4, 5])
|
||||
|
||||
print(arr)
|
||||
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user