Skip to content

Commit

Permalink
fix: add env to ensure_venv
Browse files Browse the repository at this point in the history
  • Loading branch information
bojiang committed Sep 30, 2024
1 parent df8645c commit 6a5a053
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openllm/venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

@functools.lru_cache
def _resolve_bento_venv_spec(
bento: BentoInfo, runtime_envs: Optional[EnvVars] = None
bento: BentoInfo, runtime_envs: Optional[EnvVars] = None,
) -> VenvSpec:
ver_file = bento.path / "env" / "python" / "version.txt"
assert ver_file.exists(), f"cannot find version file in {bento.path}"
Expand Down Expand Up @@ -77,6 +77,7 @@ def _ensure_venv(venv_spec: VenvSpec) -> pathlib.Path:
venv / "requirements.txt",
],
silent=VERBOSE_LEVEL.get() < 10,
env=venv_spec.envs,
)
with open(venv / "DONE", "w") as f:
f.write("DONE")
Expand Down

0 comments on commit 6a5a053

Please sign in to comment.