MCPcopy Index your code
hub / github.com/python/cpython / _check_tool_version

Function _check_tool_version

Tools/jit/_llvm.py:68–73  ·  view source on GitHub ↗
(
    name: str, llvm_version: str, *, echo: bool = False
)

Source from the content-addressed store, hash-verified

66
67@_async_cache
68async def _check_tool_version(
69 name: str, llvm_version: str, *, echo: bool = False
70) -> bool:
71 output = await _run(name, ["--version"], echo=echo)
72 _llvm_version_pattern = re.compile(rf"version\s+{llvm_version}\.\d+\.\d+\S*\s+")
73 return bool(output and _llvm_version_pattern.search(output))
74
75
76@_async_cache

Callers 1

_find_toolFunction · 0.85

Calls 3

_runFunction · 0.85
compileMethod · 0.45
searchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…