mirror of
https://github.com/openwrt/packages.git
synced 2025-12-11 13:11:22 +00:00
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>
(cherry picked from commit 7b4ee2dabf)
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
12 lines
378 B
Diff
12 lines
378 B
Diff
--- a/numpy/distutils/system_info.py
|
|
+++ b/numpy/distutils/system_info.py
|
|
@@ -403,7 +403,7 @@ def get_standard_file(fname):
|
|
pass
|
|
else:
|
|
user_file = os.path.join(f, fname)
|
|
- if os.path.isfile(user_file):
|
|
+ if "_PYTHON_HOST_PLATFORM" not in os.environ and os.path.isfile(user_file):
|
|
filenames.append(user_file)
|
|
|
|
# Local file
|