summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2023-03-17 09:12:11 +0000
committerRalf Gommers <ralf.gommers@gmail.com>2023-03-17 11:15:59 +0000
commit084ef49a68775b9e6865b519e7cc5af6e10d21ac (patch)
treee2363119e686fc24992d360bd4031d9a0edbd518
parent28bce82c82ba1151baeb7399abf454418b33eefe (diff)
downloadnumpy-084ef49a68775b9e6865b519e7cc5af6e10d21ac.tar.gz
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]
-rw-r--r--.devcontainer/devcontainer.json5
-rwxr-xr-x.devcontainer/setup.sh7
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