提交 00aac3f9 authored 作者: Oscar Gustafsson's avatar Oscar Gustafsson 提交者: Brandon T. Willard

Removed direct access to no longer existing config information

There was a direct access to a NumPy configuration which was removed in 1.22. This PR removes the special handling and rely on accessing the configuration in a controlled way to avoid later issues.
上级 ff4b91dd
......@@ -2622,11 +2622,6 @@ def default_blas_ldflags():
warn_record = []
try:
if hasattr(numpy.distutils, "__config__") and numpy.distutils.__config__:
# If the old private interface is available use it as it
# don't print information to the user.
blas_info = numpy.distutils.__config__.blas_opt_info
else:
# We do this import only here, as in some setup, if we
# just import aesara and exit, with the import at global
# scope, we get this error at exit: "Exception TypeError:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论