MCPcopy Index your code
hub / github.com/celer-pkg/celer / normalizeVersion

Function normalizeVersion

buildtools/setup_python.go:353–359  ·  view source on GitHub ↗
(fullVersion string)

Source from the content-addressed store, hash-verified

351}
352
353func normalizeVersion(fullVersion string) string {
354 parts := strings.Split(fullVersion, ".")
355 if len(parts) >= 2 {
356 return parts[0] + "." + parts[1]
357 }
358 return fullVersion
359}
360
361type pythonTool struct {
362 Path string

Callers 2

setupPythonFunction · 0.85
shouldUseCondaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected