MCPcopy Create free account
hub / github.com/BerriAI/litellm / _install_base_native

Function _install_base_native

scripts/openapi_docs_gate.py:104–118  ·  view source on GitHub ↗
(worktree: Path, repo_root: Path)

Source from the content-addressed store, hash-verified

102
103
104def _install_base_native(worktree: Path, repo_root: Path) -> None:
105 env: Final = {
106 **os.environ,
107 "CARGO_TARGET_DIR": str(
108 Path(os.environ.get("CARGO_TARGET_DIR", repo_root / "litellm-rust" / "target")).resolve()
109 ),
110 }
111 _run(
112 [
113 "uv", "pip", "install", "--python", sys.executable, "--no-deps",
114 "--target", str(worktree.parent / "native-install"), "--editable", str(worktree),
115 ],
116 cwd=worktree,
117 env=env,
118 )
119
120
121def base_counts(ref: str, repo_root: Path = REPO_ROOT, checker: Path = CHECKER) -> Mapping[str, int]:

Callers 1

base_countsFunction · 0.85

Calls 5

strFunction · 0.85
_runFunction · 0.70
getMethod · 0.65
PathClass · 0.50
resolveMethod · 0.45

Tested by

no test coverage detected