Skip to content

Commit

Permalink
MAINT: Fix codespaces setup.sh script (numpy#24381)
Browse files Browse the repository at this point in the history
A change in how codespaces is configured upstream causes the installation script for micromamba to wait for input unless stdin is explicitly made empty, which causes codespaces creation to fail.

[skip ci]

Co-authored-by: melissawm <melissawm@gmail.com>
  • Loading branch information
charris and melissawm committed Nov 11, 2023
1 parent 25b3ed8 commit 572ca7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

curl micro.mamba.pm/install.sh | bash
"${SHELL}" <(curl -Ls micro.mamba.pm/install.sh) < /dev/null

conda init --all
micromamba shell init -s bash
Expand All @@ -11,3 +11,7 @@ micromamba env create -f environment.yml --yes
# user (same applies to `conda activate`)

git submodule update --init

# Enables users to activate environment without having to specify the full path
echo "envs_dirs:
- /home/codespace/micromamba/envs" > /opt/conda/.condarc

0 comments on commit 572ca7e

Please # to comment.