Skip to content

Commit

Permalink
Do not use deprecated find_executable
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Sep 26, 2024
1 parent c767114 commit 6bb9b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytensor/configdefaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
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 (
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6bb9b59

Please sign in to comment.