diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3-numpy')
-rw-r--r-- | meta/recipes-devtools/python/python3-numpy/disable_blas.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-numpy/disable_blas.patch b/meta/recipes-devtools/python/python3-numpy/disable_blas.patch new file mode 100644 index 0000000000..09d65e8419 --- /dev/null +++ b/meta/recipes-devtools/python/python3-numpy/disable_blas.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | We've seen reproducibility failures where it appears an extra -O3 compiler flag ends | ||
2 | up in the multiarray library compilation. This can only really have come through | ||
3 | extra_info since it only affects just this library. Rather than try and track | ||
4 | down exactly where this came from in a rabbit warren of code, just disable | ||
5 | this since we don't have any of the dependencies. | ||
6 | |||
7 | Upstream-Status: Inappropriate [OE specific config hack] | ||
8 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
9 | |||
10 | Index: numpy-1.25.2/numpy/core/setup.py | ||
11 | =================================================================== | ||
12 | --- numpy-1.25.2.orig/numpy/core/setup.py | ||
13 | +++ numpy-1.25.2/numpy/core/setup.py | ||
14 | @@ -755,22 +755,7 @@ def configuration(parent_package='',top_ | ||
15 | join('src', 'common', 'npy_cpu_features.c'), | ||
16 | ] | ||
17 | |||
18 | - if os.environ.get('NPY_USE_BLAS_ILP64', "0") != "0": | ||
19 | - blas_info = get_info('blas_ilp64_opt', 2) | ||
20 | - else: | ||
21 | - blas_info = get_info('blas_opt', 0) | ||
22 | - | ||
23 | - have_blas = blas_info and ('HAVE_CBLAS', None) in blas_info.get('define_macros', []) | ||
24 | - | ||
25 | - if have_blas: | ||
26 | - extra_info = blas_info | ||
27 | - # These files are also in MANIFEST.in so that they are always in | ||
28 | - # the source distribution independently of HAVE_CBLAS. | ||
29 | - common_src.extend([join('src', 'common', 'cblasfuncs.c'), | ||
30 | - join('src', 'common', 'python_xerbla.c'), | ||
31 | - ]) | ||
32 | - else: | ||
33 | - extra_info = {} | ||
34 | + extra_info = {} | ||
35 | |||
36 | ####################################################################### | ||
37 | # _multiarray_umath module - multiarray part # | ||