Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
be222f0c
提交
be222f0c
authored
7月 12, 2022
作者:
Brandon T. Willard
提交者:
Brandon T. Willard
7月 12, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove references to numpy.distutils
上级
ef7d8bb8
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
24 行删除
+5
-24
cmodule.py
aesara/link/c/cmodule.py
+3
-21
blas.py
aesara/tensor/blas.py
+1
-2
troubleshooting.rst
doc/troubleshooting.rst
+1
-1
没有找到文件。
aesara/link/c/cmodule.py
浏览文件 @
be222f0c
...
...
@@ -21,7 +21,7 @@ import warnings
from
io
import
BytesIO
,
StringIO
from
typing
import
Callable
,
Dict
,
List
,
Optional
,
Set
,
Tuple
,
cast
import
numpy
.distutils
import
numpy
as
np
from
setuptools._distutils.sysconfig
import
(
get_config_h_filename
,
get_config_var
,
...
...
@@ -1670,7 +1670,7 @@ def get_gcc_shared_library_arg():
def
std_include_dirs
():
numpy_inc_dirs
=
numpy
.
distutils
.
misc_util
.
get_numpy_include_dirs
()
numpy_inc_dirs
=
[
np
.
get_include
()]
py_inc
=
get_python_inc
()
py_plat_spec_inc
=
get_python_inc
(
plat_specific
=
True
)
python_inc_dirs
=
(
...
...
@@ -2705,27 +2705,9 @@ def default_blas_ldflags():
str
"""
import
numpy.distutils
# noqa
warn_record
=
[]
try
:
# 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:
# "'NoneType' object is not callable" in <bound method
# Popen.__del__ of <subprocess.Popen object at 0x21359d0>>
# ignored"
# This happen with Python 2.7.3 |EPD 7.3-1 and numpy 1.8.1
# isort: off
import
numpy.distutils.system_info
# noqa
# We need to catch warnings as in some cases NumPy print
# stuff that we don't want the user to see.
# I'm not able to remove all printed stuff
with
warnings
.
catch_warnings
(
record
=
True
):
numpy
.
distutils
.
system_info
.
system_info
.
verbosity
=
0
blas_info
=
numpy
.
distutils
.
system_info
.
get_info
(
"blas_opt"
)
blas_info
=
np
.
__config__
.
get_info
(
"blas_opt"
)
# If we are in a EPD installation, mkl is available
if
"EPD"
in
sys
.
version
:
...
...
aesara/tensor/blas.py
浏览文件 @
be222f0c
...
...
@@ -130,11 +130,10 @@ import os
import
time
import
numpy
as
np
import
numpy.distutils
try
:
import
numpy.
distutils.
__config__
# noqa
import
numpy.__config__
# noqa
except
ImportError
:
pass
...
...
doc/troubleshooting.rst
浏览文件 @
be222f0c
...
...
@@ -150,7 +150,7 @@ How do I configure/test my BLAS library
There are many ways to configure BLAS for Aesara. This is done with the Aesara
flags ``blas__ldflags`` (:ref:`libdoc_config`). The default is to use the BLAS
installation information in NumPy, accessible via
``numpy.
distutils.
__config__.show()``. You can tell aesara to use a different
``numpy.__config__.show()``. You can tell aesara to use a different
version of BLAS, in case you did not compile NumPy with a fast BLAS or if NumPy
was compiled with a static library of BLAS (the latter is not supported in
Aesara).
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论