提交 ca0945c9 authored 作者: Frederic Bastien's avatar Frederic Bastien

small fix.

上级 789f36a5
...@@ -52,11 +52,11 @@ def ldflags(libs=True, flags=False, libs_dir=False, include_dir=False): ...@@ -52,11 +52,11 @@ def ldflags(libs=True, flags=False, libs_dir=False, include_dir=False):
if libs_dir: if libs_dir:
found_dyn=False found_dyn=False
dirs = [x[2:] for x in config.blas.ldflags.split() if x.startswith('-L')] dirs = [x[2:] for x in config.blas.ldflags.split() if x.startswith('-L')]
libs = ldflags() l = ldflags()
for d in dirs: for d in dirs:
for f in os.listdir(d): for f in os.listdir(d):
if f.endswith('.so') or f.endswith('.dylib') or f.endswith('.dll'): if f.endswith('.so') or f.endswith('.dylib') or f.endswith('.dll'):
if any([f.find(l)>=0 for l in libs]): if any([f.find(l)>=0 for l in l]):
found_dyn=True found_dyn=True
if not found_dyn and dirs: if not found_dyn and dirs:
warning("We did not found a dynamic library into the library_dir of the library we use for blas. If you use ATLAS, make sure to compile it with dynamics library.") warning("We did not found a dynamic library into the library_dir of the library we use for blas. If you use ATLAS, make sure to compile it with dynamics library.")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论