Skip to content

use the run command of conda / mamba / micromamba and support pixi - #260

Open
keewis wants to merge 23 commits into
ncar-xdev:mainfrom
keewis:run
Open

use the run command of conda / mamba / micromamba and support pixi#260
keewis wants to merge 23 commits into
ncar-xdev:mainfrom
keewis:run

Conversation

@keewis

@keewis keewis commented Oct 28, 2025

Copy link
Copy Markdown
Contributor

Change Summary

This adds the --environment-manager and --environment-manager-path cli options, as well as replacing the activate step with the run subcommand.

No tests, yet.

Related issue number

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI
  • Documentation reflects the changes where applicable

@keewis keewis changed the title Run use the run command of conda / mamba / micromamba and support pixi Oct 28, 2025
@keewis

keewis commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

this should be ready, but we could in theory also add support for uv (which should be pretty close to pixi, but with slightly different options for run)

cc @andersy005

@andersy005 andersy005 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thank you so much for putting this together, @keewis! It looks solid

@andersy005

Copy link
Copy Markdown
Member

this should be ready, but we could in theory also add support for uv (which should be pretty close to pixi, but with slightly different options for run)

if you don't have time/capacity to work on uv support, let's leave it for another PR in the future

lots of compute nodes don't have internet access, so this can improve
the startup times a bit
@keewis

keewis commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

looking at it again, uv appears to be a bit different in that you manually include dependency groups or optional dependencies instead of choosing an environment. Possibly we can come up with a way to encode this in the environment string, like

<path>:extras=extra1,extra2:groups=group1,group2,-default  # `-default` means exclude the default group
<path>:extras=+,-extra1:groups=-group3  # `+` means all extras

or add a way to pass options to uv, but I do think that this is complex enough that it should be a different PR.

(also, I don't know uv well enough to really know what I'm proposing)

@keewis

keewis commented Jul 18, 2026

Copy link
Copy Markdown
Contributor Author

or maybe the default group (dev) is enough for now, in which case this should be simple enough to implement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use the run command of conda / mamba / micromamba execute command before entering conda environment

2 participants