diff options
author | Ralf Gommers <ralf.gommers@googlemail.com> | 2015-05-04 21:46:57 +0200 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@googlemail.com> | 2015-05-04 23:15:46 +0200 |
commit | 7a02544da53df1547c2aa3f384773c48607a5d40 (patch) | |
tree | 7541c731edec82fe28cb84e92ca5bb65bbf70fd9 | |
parent | 63e8babb47709ff14b1d728fd46029edcbded70c (diff) | |
download | numpy-7a02544da53df1547c2aa3f384773c48607a5d40.tar.gz |
BLD: use fix for Accelerate SGEMV issue in Bento build. See gh-5831.
-rw-r--r-- | numpy/core/bscript | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/numpy/core/bscript b/numpy/core/bscript index 48d18b885..c54e25272 100644 --- a/numpy/core/bscript +++ b/numpy/core/bscript @@ -15,6 +15,10 @@ waflib.Logs.verbose = 1 # context. import numpy.build_utils.waf +from numpy.build_utils.apple_accelerate \ + import \ + get_sgemv_fix + from code_generators.numpy_api \ import \ multiarray_api, ufunc_api @@ -27,6 +31,9 @@ from setup_common \ C99_FUNCS_SINGLE, C99_COMPLEX_TYPES, C99_COMPLEX_FUNCS, \ MANDATORY_FUNCS, C_ABI_VERSION, C_API_VERSION +def make_relpath(f): + return os.path.relpath(f, os.path.abspath(os.path.dirname(__file__))) + ENABLE_SEPARATE_COMPILATION = (os.environ.get('NPY_SEPARATE_COMPILATION', "1") != "0") NPY_RELAXED_STRIDES_CHECKING = (os.environ.get('NPY_RELAXED_STRIDES_CHECKING', "1") != "0") @@ -483,6 +490,8 @@ def pre_build(context): sources.extend([pjoin('src', 'multiarray', 'cblasfuncs.c'), pjoin('src', 'multiarray', 'python_xerbla.c'), ]) + if "Accelerate" in bld.env.FRAMEWORK_CBLAS: + sources.extend([make_relpath(get_sgemv_fix()[0])]) else: sources = extension.sources |