Skip to content

Commit cb81b1c

Browse files
committed
fix: install bentoml
1 parent 74ffa7f commit cb81b1c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/openllm/venv.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
import typer
77

8-
from openllm.common import VENV_DIR, VERBOSE_LEVEL, BentoInfo, VenvSpec, output, run_command
8+
from openllm.common import (VENV_DIR, VERBOSE_LEVEL, BentoInfo, VenvSpec,
9+
output, run_command)
910

1011

1112
@functools.lru_cache
@@ -33,6 +34,10 @@ def _ensure_venv(env_spec: VenvSpec) -> pathlib.Path:
3334
venv_py = venv / 'Scripts' / 'python.exe' if os.name == 'nt' else venv / 'bin' / 'python'
3435
try:
3536
run_command(['python', '-m', 'uv', 'venv', venv], silent=VERBOSE_LEVEL.get() < 10)
37+
run_command(
38+
['python', '-m', 'uv', 'pip', 'install', '-p', str(venv_py), 'bentoml'],
39+
silent=VERBOSE_LEVEL.get() < 10,
40+
)
3641
with open(venv / 'requirements.txt', 'w') as f:
3742
f.write(env_spec.normalized_requirements_txt)
3843
run_command(

0 commit comments

Comments
 (0)