提交 99fbef6e authored 作者: Thomas Wiecki's avatar Thomas Wiecki 提交者: Brandon T. Willard

Remove MKL warning.

上级 0f9f93c8
...@@ -2738,9 +2738,8 @@ def default_blas_ldflags(): ...@@ -2738,9 +2738,8 @@ def default_blas_ldflags():
# numpy and scipy. # numpy and scipy.
try: try:
import mkl # noqa import mkl # noqa
except ImportError as e: except ImportError:
if any([m for m in ("conda", "Continuum") if m in sys.version]): pass
warn_record.append(f"install mkl with `conda install mkl-service`: {e}")
else: else:
# This branch is executed if no exception was raised # This branch is executed if no exception was raised
if sys.platform == "win32": if sys.platform == "win32":
......
...@@ -90,4 +90,4 @@ def test_default_blas_ldflags(sys_mock, try_blas_flag_mock, caplog): ...@@ -90,4 +90,4 @@ def test_default_blas_ldflags(sys_mock, try_blas_flag_mock, caplog):
with caplog.at_level(logging.WARNING): with caplog.at_level(logging.WARNING):
default_blas_ldflags() default_blas_ldflags()
assert "install mkl with" in caplog.text assert caplog.text == ""
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论