MCPcopy Create free account
hub / github.com/vercel/vercel / getPythonVersionForBuild

Function getPythonVersionForBuild

packages/python/src/version.ts:173–180  ·  view source on GitHub ↗

* Map a python-analysis PythonBuild back to a local PythonVersion entry.

(
  build: PythonBuild
)

Source from the content-addressed store, hash-verified

171 * Map a python-analysis PythonBuild back to a local PythonVersion entry.
172 */
173function getPythonVersionForBuild(
174 build: PythonBuild
175): PythonVersion | undefined {
176 return allOptions.find(
177 opt =>
178 opt.major === build.version.major && opt.minor === build.version.minor
179 );
180}
181
182/**
183 * Resolve Python version from an already-discovered PythonPackage.

Callers 1

resolvePythonVersionFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected