Commit 0f00407
committed
fix(scripts): pip-install
CI containers running with `--no-build-isolation` (metax, moore,
cambricon) skip `[build-system].requires` and never install
`clang-format` from PyPI; system packages do not provide it
either, so cmake-time codegen fails with `FileNotFoundError`.
Probe `PATH` for `clang-format` at codegen entry; if missing,
`pip install clang-format` into the running interpreter and reuse
the installed binary. Adds at most a couple of seconds to a
first-time configure on hosts without the binary.clang-format if missing at codegen time1 parent dc2991c commit 0f00407
1 file changed
Lines changed: 32 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
827 | 855 | | |
828 | 856 | | |
829 | 857 | | |
830 | 858 | | |
831 | 859 | | |
832 | 860 | | |
833 | 861 | | |
834 | | - | |
| 862 | + | |
835 | 863 | | |
836 | 864 | | |
837 | 865 | | |
| |||
868 | 896 | | |
869 | 897 | | |
870 | 898 | | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
871 | 902 | | |
872 | 903 | | |
873 | 904 | | |
| |||
0 commit comments