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

Function isInstalled

packages/python/src/version.ts:384–397  ·  view source on GitHub ↗
(pv: PythonVersion)

Source from the content-addressed store, hash-verified

382}
383
384function isInstalled(pv: PythonVersion): boolean {
385 try {
386 const installed = getInstalledPythons();
387 const version = pythonVersionString(pv);
388 if (!version) return false;
389 return installed.has(version);
390 } catch (err) {
391 throw new NowBuildError({
392 code: 'UV_ERROR',
393 link: 'https://vercel.link/python-version',
394 message: err instanceof Error ? err.message : String(err),
395 });
396 }
397}

Callers 2

getDefaultPythonVersionFunction · 0.70
getAvailablePythonBuildsFunction · 0.70

Calls 3

getInstalledPythonsFunction · 0.85
pythonVersionStringFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected