Skip to content

Commit

Permalink
Fix pip install bug where no packages are installed
Browse files Browse the repository at this point in the history
  • Loading branch information
libowen2121 committed Apr 1, 2024
1 parent 8a4d216 commit 163fecb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions harness/context_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,10 @@ def __enter__(self):

# Activate the environment and install the packages
activate_cmd = f". {path_activate} {env_name}"
install_cmd = f"pip install {pkgs}"
full_cmd = f"{activate_cmd} && echo 'activate successful' && {install_cmd}"
full_cmd = f"{activate_cmd} && echo 'activate successful'"
if pkgs != "":
install_cmd = f"pip install {pkgs}"
full_cmd += f" && {install_cmd}"
logger_testbed.info(
f"[Testbed] Installing environment dependencies {pkgs}; Command: {full_cmd}"
)
Expand Down

0 comments on commit 163fecb

Please sign in to comment.