python3-numpy: upgrade 2.1.3 -> 2.2.1

Add a svml option, disabled by default
(it's avx-512 only, and uses randomly generated
intermediate .o file names, which makes the installed
library non-reproducible).

(From OE-Core rev: a3ce94f1fa79502d8b41de93f9a27d8af2cdc787)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin
2025-01-08 09:42:24 +01:00
committed by Richard Purdie
parent e8db9d1eae
commit 991cbf2336
4 changed files with 20 additions and 71 deletions

View File

@@ -1,7 +1,11 @@
This regex decides whether to use O3 opimisation on numpy or not.
From cde931f4380745b9818b55d7b06a43d347518967 Mon Sep 17 00:00:00 2001
From: Richard Purdie <richard.purdie@linuxfoundation.org>
Date: Fri, 29 Sep 2023 22:53:24 +0100
Subject: [PATCH] This regex decides whether to use O3 opimisation on numpy or
not.
It includes "od", which happens to be a substring of "reproducible"
but not "qemux86-world".
but not "qemux86-world".
The regex will run against all compiler options including things like:
@@ -17,12 +21,15 @@ reproducible target ran first and won the race to populate sstate.
Upstream-Status: Inappropriate [upstream have dropped distutils and switched to meson]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
numpy/distutils/ccompiler_opt.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: numpy-1.26.0/numpy/distutils/ccompiler_opt.py
===================================================================
--- numpy-1.26.0.orig/numpy/distutils/ccompiler_opt.py
+++ numpy-1.26.0/numpy/distutils/ccompiler_opt.py
@@ -990,7 +990,7 @@ class _CCompiler:
diff --git a/numpy/distutils/ccompiler_opt.py b/numpy/distutils/ccompiler_opt.py
index b1a6fa3..7b0302b 100644
--- a/numpy/distutils/ccompiler_opt.py
+++ b/numpy/distutils/ccompiler_opt.py
@@ -991,7 +991,7 @@ def __init__(self):
("cc_is_nocc", "", ""),
)
detect_args = (