Skip to content

Commit dc2991c

Browse files
committed
build: add clang-format to build-system requires
The codegen pipes generated headers/sources through `clang-format` to satisfy CI's style check. CI containers (metax, moore, cambricon) do not ship a system `clang-format` binary, so cmake-time codegen fails with `FileNotFoundError: clang-format`. Pin it as a build dep so `pip install` provisions `clang-format` into the build env before scikit-build invokes cmake.
1 parent cfea02e commit dc2991c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["scikit-build-core", "pybind11", "libclang", "pyyaml"]
2+
requires = ["scikit-build-core", "pybind11", "libclang", "pyyaml", "clang-format"]
33
build-backend = "scikit_build_core.build"
44

55
[project]

0 commit comments

Comments
 (0)