FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.13] gh-132415: Use shutil.which() in missing_compiler_executable() (GH-132906) by miss-islington · Pull Request #132916 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
5 changes: 3 additions & 2 deletions Lib/test/support/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1893,8 +1893,9 @@ def missing_compiler_executable(cmd_names=[]):
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)
Expand All @@ -1913,7 +1914,7 @@ def missing_compiler_executable(cmd_names=[]):
"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]


Expand Down

Back | FazBrowse Home | New Git URL