Replace deprecated distutils.spawn.find_executable() with
shutil.which() in missing_compiler_executable() of test.support.
missing.
"""
- from setuptools._distutils import ccompiler, sysconfig, spawn
+ from setuptools._distutils import ccompiler, sysconfig
from setuptools import errors
+ import shutil
compiler = ccompiler.new_compiler()
sysconfig.customize_compiler(compiler)
"the '%s' executable is not configured" % name
elif not cmd:
continue
- if spawn.find_executable(cmd[0]) is None:
+ if shutil.which(cmd[0]) is None:
return cmd[0]