From 084ef49a68775b9e6865b519e7cc5af6e10d21ac Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Fri, 17 Mar 2023 09:12:11 +0000 Subject: [PATCH] DEV: use micromamba to set up Codespaces This is faster, and allows using 2-core instances instead of requiring a minimum of 8 GB / 4 cores. [skip ci] --- .devcontainer/devcontainer.json | 5 ----- .devcontainer/setup.sh | 7 ++++++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 9b39524e82c2..a31be7931370 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 7d05d9e8fa45..4ea718ec927f 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