Skip to content

Commit

Permalink
grep pip list first
Browse files Browse the repository at this point in the history
  • Loading branch information
cblmemo committed Nov 26, 2023
1 parent 57410ac commit ccc81b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sky/templates/sky-serve-controller.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ setup: |
{%- endfor %}

# Install serve dependencies.
pip install uvicorn fastapi 2>&1 > /dev/null
pip list | grep uvicorn > /dev/null 2>&1 || pip install uvicorn > /dev/null 2>&1
pip list | grep fastapi > /dev/null 2>&1 || pip install fastapi > /dev/null 2>&1

file_mounts:
{{remote_task_yaml_path}}: {{local_task_yaml_path}}
Expand Down
2 changes: 1 addition & 1 deletion sky/utils/controller_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _get_cloud_dependencies_installation_commands(
commands.append(
'pip list | grep azure-cli > /dev/null 2>&1 || '
'pip install azure-cli>=2.31.0 azure-core azure-identity>=1.13.0 '
'azure-mgmt-network > /dev/null')
'azure-mgmt-network > /dev/null 2>&1')
return commands


Expand Down

0 comments on commit ccc81b0

Please sign in to comment.