distutils icon indicating copy to clipboard operation
distutils copied to clipboard

Deprecate and remove spawn.find_executable

Open jaraco opened this issue 10 months ago • 0 comments

After doing some more refactoring, I've learned that find_executable is very similar to shutil.which (similar enough that shutil.which was probably copy-pasted from find_executable). shutil.which had evolved PATHEXT searching, so the change in #248 brings the distutils behavior more inline with what shutil.which is doing.

My instinct - distutils should deprecate find_executable and in spawn utilize shutil.which.

Originally posted by @jaraco in https://github.com/pypa/distutils/issues/248#issuecomment-2067869932

jaraco avatar Apr 21 '24 02:04 jaraco