提交 73bd7ecd authored 作者: Ricardo Vieira's avatar Ricardo Vieira 提交者: Ricardo Vieira

Do not use deprecated `find_executable`

上级 c7671149
...@@ -3,13 +3,13 @@ import logging ...@@ -3,13 +3,13 @@ import logging
import os import os
import platform import platform
import re import re
import shutil
import socket import socket
import sys import sys
import textwrap import textwrap
from pathlib import Path from pathlib import Path
import numpy as np import numpy as np
from setuptools._distutils.spawn import find_executable
import pytensor import pytensor
from pytensor.configparser import ( from pytensor.configparser import (
...@@ -349,7 +349,7 @@ def add_compile_configvars(): ...@@ -349,7 +349,7 @@ def add_compile_configvars():
# Try to find the full compiler path from the name # Try to find the full compiler path from the name
if param != "": if param != "":
newp = find_executable(param) newp = shutil.which(param)
if newp is not None: if newp is not None:
param = newp param = newp
del newp del newp
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论