numpy: bump to version 2.2.1
authorAlexandru Ardelean <alex@shruggie.ro>
Tue, 24 Dec 2024 12:28:02 +0000 (14:28 +0200)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Sat, 28 Dec 2024 16:51:59 +0000 (18:51 +0200)
commit7b4ee2dabf0f2d7997f47bc56cf8e361ab1294de
tree05df5226e92ccb4576dbe3c6a16dcc764af463f7
parentdc273bfa4488858d936472e05a0be4f421d9ab0a
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>
lang/python/numpy/Makefile
lang/python/numpy/files/openwrt-cross.txt.in [new file with mode: 0644]
lang/python/numpy/patches/002-avoid-build-user-config-files.patch
lang/python/numpy/patches/003-without-vendored-meson.patch [deleted file]
lang/python/numpy/patches/004-workaround-for-multiple-top-level-packages-discovered.patch [deleted file]
lang/python/numpy/test.sh [new file with mode: 0644]