Skip to content

DEV: use micromamba to set up Codespaces #23411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2023
Merged

Conversation

rgommers
Copy link
Member

This is faster, and allows using 2-core instances instead of requiring a minimum of 8 GB / 4 cores. Users can now use conda or micromamba after the container starts.

xref gh-23134 for more context.

This is faster, and allows using 2-core instances instead of
requiring a minimum of 8 GB / 4 cores.

[skip ci]
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`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may be able to do this in the postCreateCommand?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes maybe - I ran out of time to try this, iterating is a little slow on this stuff. I might try this later.

@seberg
Copy link
Member

seberg commented Mar 18, 2023

Thanks Ralf, lets just put it in and anyone who wants to improve can follow-up.

@seberg seberg merged commit fb8d43f into numpy:main Mar 18, 2023
@rgommers rgommers deleted the codespaces-update branch March 18, 2023 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants