Registry / devops / clang-tool-chain

clang-tool-chain

JSON →
library1.5.8pypypi✓ verified 81d ago

Clang Tool Chain provides utilities for C/C++ compilation toolchain management, including locating Clang, setting compilation flags, and building projects. Current version 1.3.0, updated occasionally.

pip install clang-tool-chain
INSTALL
IMPORT
SIG · CLANG-TOOL-CHAIN
C
clang-tool-chain
devopspythonv1.5.8
Install
8.9s avg
Import
Disk
111MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.3.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✓ —
✓ 10.1s
py 3.11
✓ —
✓ 9.3s
py 3.12
✓ —
✓ 8s
py 3.13
✓ —
✓ 8.1s
py 3.9
✕ build_error
✕ build_error
111MB installed
● package 111MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

detect_sanitizers_from_flags
from clang_tool_chain import detect_sanitizers_from_flags
from clang_tool_chain import ClangToolChain
find_tool_binary
from clang_tool_chain import find_tool_binary
get_all_sanitizer_runtime_dlls
from clang_tool_chain import get_all_sanitizer_runtime_dlls

Initialize ClangToolChain and retrieve paths/flags.

from clang_tool_chain import ClangToolChain tc = ClangToolChain() print('Clang found at:', tc.clang_path) print('Compile flags:', tc.get_compile_flags())
Debug
Known issues
breakingVersion 1.3.0 drops Python 3.9 support. Requires Python >=3.10.
fix
Upgrade Python to 3.10+ or pin clang-tool-chain <1.3.0.
affects: <1.3.0
gotchaThe package does not bundle Clang binaries. It expects Clang to be installed on the system and accessible via PATH.
fix
Install Clang from your system package manager (e.g., 'apt install clang', 'brew install llvm').
affects: all
deprecatedThe function 'get_toolchain' is deprecated in favor of 'ClangToolChain'.
fix
Use 'ClangToolChain' class instead.
affects: >=1.0.0
Upgrade
Version history
1.5.8latest on PyPI · released May 19, 2026
Audit
Dependencies
setuptoolsrequiredUsed internally for compilation toolchain discovery
Agent activity
7 hits · last 30 days
node
6
Resources
clang-tool-chain — pip install clang-tool-chain · libregistry