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

Do not use deprecated `find_executable`

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