Commit c72f6c80 authored by André Anjos's avatar André Anjos 💬

Merge branch '9-on-osx-openblas-is-broken-a-fix-is-needed' into 'master'

sometimes numpy wrongly reports that is linked against mkl_lapack95_lp64 but we …

Closes #9

See merge request !9
parents fb3d75e8 66878e44
Pipeline #6772 passed with stages
in 3 minutes and 37 seconds
......@@ -69,6 +69,14 @@ math_flags = dict(
for key in math_flags:
math_flags[key] = uniq(lapack_flags.get(key, []) + blas_flags.get(key, []))
# remove the mkl libraries that we do not need and might not exist
if len(math_flags['libraries']) > 0 and \
any(['mkl' in lib for lib in math_flags['libraries']]):
NOT_VALID = ['mkl_lapack95_lp64'] # we don't need this!
for lib in list(math_flags['libraries']):
if lib in NOT_VALID:
math_flags['libraries'].remove(lib)
# checks if those libraries actually exist
found_all = all([find_library(lib, prefixes=math_flags.get('library_dirs'))
for lib in math_flags['libraries']])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment