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

Function makeDependencyCheckCode

packages/python/src/install.ts:40–45  ·  view source on GitHub ↗
(dependency: string)

Source from the content-addressed store, hash-verified

38}
39
40const makeDependencyCheckCode = (dependency: string) => `
41from importlib import util
42dep = '${dependency}'.replace('-', '_')
43spec = util.find_spec(dep)
44print(spec.origin)
45`;
46
47export async function isInstalled(
48 pythonPath: string,

Callers 1

isInstalledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected