diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2023-03-18 09:31:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-18 09:31:30 +0100 |
commit | fb8d43f9c2742347edc91b1207be0a4e2af5c2ff (patch) | |
tree | 443315256eda59b5cdc80cc68e78caa611f85165 | |
parent | 0a38ae97ebde272053dbc2109b43f5a44715eb1a (diff) | |
parent | 084ef49a68775b9e6865b519e7cc5af6e10d21ac (diff) | |
download | numpy-fb8d43f9c2742347edc91b1207be0a4e2af5c2ff.tar.gz |
Merge pull request #23411 from rgommers/codespaces-update
DEV: use micromamba to set up Codespaces
-rw-r--r-- | .devcontainer/devcontainer.json | 5 | ||||
-rwxr-xr-x | .devcontainer/setup.sh | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 9b39524e8..a31be7931 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,9 +1,4 @@ { - // Conda requires lots of memory to resolve our environment - "hostRequirements": { - "memory": "8gb" - }, - // More info about Features: https://containers.dev/features "image": "mcr.microsoft.com/devcontainers/universal:2", "features": {}, diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh index 7d05d9e8f..4ea718ec9 100755 --- a/.devcontainer/setup.sh +++ b/.devcontainer/setup.sh @@ -2,7 +2,12 @@ set -e +curl micro.mamba.pm/install.sh | bash + conda init --all -conda env create -f environment.yml +micromamba shell init -s bash +micromamba env create -f environment.yml --yes +# Note that `micromamba activate numpy-dev` doesn't work, it must be run by the +# user (same applies to `conda activate`) git submodule update --init |