提交 e3a7573a authored 作者: Frederic's avatar Frederic

Link blas to epd library correcly on windows.

上级 d565bb0e
...@@ -303,6 +303,14 @@ def default_blas_ldflags(): ...@@ -303,6 +303,14 @@ def default_blas_ldflags():
try: try:
# If we are in a EPD installation, mkl is available # If we are in a EPD installation, mkl is available
if "EPD" in sys.version: if "EPD" in sys.version:
if sys.platform == 'win32':
return ' '.join(
['-L%s' % os.path.join(sys.prefix, "Scripts")] +
# Why on Windows, the library used are not the
# same as what is in
# numpy.distutils.__config__.blas_opt_info['libraries']?
['-l%s' % l for l in ["mk2_core", "mk2_intel_thread",
"mk2_rt"]])
return ' '.join( return ' '.join(
['-L%s' % os.path.join(sys.prefix, "lib")] + ['-L%s' % os.path.join(sys.prefix, "lib")] +
['-l%s' % l for l in numpy.distutils.__config__.blas_opt_info['libraries']]) ['-l%s' % l for l in numpy.distutils.__config__.blas_opt_info['libraries']])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论