提交 29ca5137 authored 作者: Frederic's avatar Frederic

Allow to reuse anaconda 2.3 blas on linux

上级 bba7fda1
...@@ -306,6 +306,13 @@ SOMEPATH/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/system_in ...@@ -306,6 +306,13 @@ SOMEPATH/Canopy_64bit/User/lib/python2.7/site-packages/numpy/distutils/system_in
[]) [])
if GCC_compiler.try_flags(ret): if GCC_compiler.try_flags(ret):
return ' '.join(ret) return ' '.join(ret)
# Try to add the anaconda lib directory to runtime loading of lib.
# This fix some case with Anaconda 2.3 on Linux.
if "Anaconda" in sys.version and "linux" in sys.platform:
lib_path = os.path.join(sys.prefix, 'lib')
ret.append('-Wl,-rpath,' + lib_path)
if GCC_compiler.try_flags(ret):
return ' '.join(ret)
except KeyError: except KeyError:
pass pass
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论