8000 [24.10] numpy: bump to version 2.2.1 by commodo · Pull Request #25635 · openwrt/packages · GitHub
[go: up one dir, main page]

Skip to content

[24.10] numpy: bump to version 2.2.1 #25635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2025

Conversation

commodo
Copy link
Contributor
@commodo commodo commented Dec 28, 2024

Maintainer: me
Compile tested: no
Run tested: no

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:
numpy/numpy#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
(cherry picked from commit 7b4ee2d)

@commodo commodo added the OpenWrt 24.10 Issue/PR on branch 24.10 label Dec 28, 2024
@commodo commodo changed the title numpy: bump to version 2.2.1 [24.10] numpy: bump to version 2.2.1 Dec 28, 2024
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:
   numpy/numpy#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>
(cherry picked from commit 7b4ee2d)
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
@commodo commodo merged commit 056b7a4 into openwrt:openwrt-24.10 Mar 11, 2025
8 of 12 checks passed
@commodo commodo deleted the numpy-24.10 branch March 11, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OpenWrt 24.10 Issue/PR on branch 24.10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0