blob: 09d65e84190973a751d9c2525695978da3518a2c [file] [log] [blame]
Andrew Geissler5082cc72023-09-11 08:41:39 -04001We've seen reproducibility failures where it appears an extra -O3 compiler flag ends
2up in the multiarray library compilation. This can only really have come through
3extra_info since it only affects just this library. Rather than try and track
4down exactly where this came from in a rabbit warren of code, just disable
5this since we don't have any of the dependencies.
6
7Upstream-Status: Inappropriate [OE specific config hack]
8Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
9
10Index: 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 #