Commit 66878e44 authored by Amir Mohammadi's avatar Amir Mohammadi

sometimes numpy wrongly reports that is linked against mkl_lapack95_lp64 but...

sometimes numpy wrongly reports that is linked against mkl_lapack95_lp64 but we do not need that library anyway so this will throw it away
parent fb3d75e8
Pipeline #6667 passed with stages
in 4 minutes and 2 seconds
...@@ -69,6 +69,14 @@ math_flags = dict( ...@@ -69,6 +69,14 @@ math_flags = dict(
for key in math_flags: for key in math_flags:
math_flags[key] = uniq(lapack_flags.get(key, []) + blas_flags.get(key, [])) 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 # checks if those libraries actually exist
found_all = all([find_library(lib, prefixes=math_flags.get('library_dirs')) found_all = all([find_library(lib, prefixes=math_flags.get('library_dirs'))
for lib in math_flags['libraries']]) 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