Skip to content
Snippets Groups Projects
Commit 66878e44 authored by Amir Mohammadi's avatar Amir Mohammadi
Browse files

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
No related branches found
No related tags found
1 merge request!9sometimes numpy wrongly reports that is linked against mkl_lapack95_lp64 but we …
Pipeline #
...@@ -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']])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment