Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to install_conda to actually run on the cluster. #954

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions runhouse/resources/envs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ def run_setup_command(


def install_conda(cluster: "Cluster" = None):
if run_setup_command("conda --version")[0] != 0:
if run_setup_command("conda --version", cluster=cluster)[0] != 0:
logging.info("Conda is not installed. Installing...")
for cmd in CONDA_INSTALL_CMDS:
run_setup_command(cmd, stream_logs=True)
if run_setup_command("conda --version")[0] != 0:
run_setup_command(cmd, cluster=cluster, stream_logs=True)
if run_setup_command("conda --version", cluster=cluster)[0] != 0:
raise RuntimeError("Could not install Conda.")
Loading