MCPcopy Create free account
hub / github.com/celer-pkg/celer / CheckTools

Method CheckTools

buildsystems/build_custom.go:23–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func (c custom) CheckTools() []string {
24 // Start with build_tools from port.toml
25 tools := slices.Clone(c.BuildConfig.BuildTools)
26
27 // Add default tools
28 tools = append(tools, "cmake")
29
30 // Auto-detect Python usage from custom commands to ensure the venv is set up.
31 if c.needsPython() && !slices.Contains(tools, "python3") {
32 tools = append(tools, "python3")
33 }
34 return tools
35}
36
37// needsPython checks if any custom command references Python placeholders.
38func (c custom) needsPython() bool {

Callers

nothing calls this directly

Calls 2

needsPythonMethod · 0.95
CloneMethod · 0.65

Tested by

no test coverage detected