We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a9bfee commit de6482eCopy full SHA for de6482e
Lib/test/support/__init__.py
@@ -1940,8 +1940,9 @@ def missing_compiler_executable(cmd_names=[]):
1940
missing.
1941
1942
"""
1943
- from setuptools._distutils import ccompiler, sysconfig, spawn
+ from setuptools._distutils import ccompiler, sysconfig
1944
from setuptools import errors
1945
+ import shutil
1946
1947
compiler = ccompiler.new_compiler()
1948
sysconfig.customize_compiler(compiler)
@@ -1960,7 +1961,7 @@ def missing_compiler_executable(cmd_names=[]):
1960
1961
"the '%s' executable is not configured" % name
1962
elif not cmd:
1963
continue
- if spawn.find_executable(cmd[0]) is None:
1964
+ if shutil.which(cmd[0]) is None:
1965
return cmd[0]
1966
1967
0 commit comments