提交 008692bc authored 作者: Frederic's avatar Frederic

Make Canopy on mac link to MKL.

上级 84ec31fe
......@@ -199,7 +199,15 @@ def default_blas_ldflags():
['-l%s' % l for l in blas_info['libraries']])
#Canopy
if "Canopy" in sys.prefix:
p = os.path.join(sys.base_prefix, "..", "..", "appdata")
if sys.platform == "darwin":
p2 = os.path.join(sys.base_prefix, "lib")
assert os.path.exists(p2), "Canopy changed the location of MKL"
return ' '.join(
['-L%s' % p2] +
['-l%s' % l for l in blas_info['libraries']])
p = os.path.join(sys.prefix, "..", "..", "..",
"Canopy", "appdata")
assert os.path.exists(p), "Canopy changed the location of MKL"
p2 = os.listdir(p)
assert len(p2) == 1, "Canopy changed the location of MKL"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论