Skip to content

Commit

Permalink
[Setup] Not skipping conda init (#2909)
Browse files Browse the repository at this point in the history
* Revert changes for skipping `conda init`

* avoid dev/null
  • Loading branch information
Michaelvll authored Dec 27, 2023
1 parent 708ad97 commit bc0c99c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions sky/skylet/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,9 @@
'which conda > /dev/null 2>&1 || '
'(wget -nc https://repo.anaconda.com/miniconda/Miniconda3-py310_23.5.2-0-Linux-x86_64.sh -O Miniconda3-Linux-x86_64.sh && ' # pylint: disable=line-too-long
'bash Miniconda3-Linux-x86_64.sh -b && '
'eval "$(~/miniconda3/bin/conda shell.bash hook)" && conda init && '
'eval "$(~/miniconda3/bin/conda shell.bash hook)" && '
'conda config --set auto_activate_base true); '
# Only run `conda init` if the conda is not installed under /opt/conda,
# which is the case for VMs created on GCP, and running `conda init` will
# cause error and waiting for the error to be reported: #2273.
'which conda | grep /opt/conda || conda init > /dev/null;')
'grep "# >>> conda initialize >>>" ~/.bashrc || conda init;')

# The name for the environment variable that stores SkyPilot user hash, which
# is mainly used to make sure sky commands runs on a VM launched by SkyPilot
Expand Down

0 comments on commit bc0c99c

Please sign in to comment.