Skip to content

Commit 73bd7ec

Browse files
committed
Do not use deprecated find_executable
1 parent c767114 commit 73bd7ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytensor/configdefaults.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
import os
44
import platform
55
import re
6+
import shutil
67
import socket
78
import sys
89
import textwrap
910
from pathlib import Path
1011

1112
import numpy as np
12-
from setuptools._distutils.spawn import find_executable
1313

1414
import pytensor
1515
from pytensor.configparser import (
@@ -349,7 +349,7 @@ def add_compile_configvars():
349349

350350
# Try to find the full compiler path from the name
351351
if param != "":
352-
newp = find_executable(param)
352+
newp = shutil.which(param)
353353
if newp is not None:
354354
param = newp
355355
del newp

0 commit comments

Comments
 (0)