Skip to content

vine: example for pixi env as an execution context - #4592

Open
btovar wants to merge 1 commit into
cooperative-computing-lab:masterfrom
btovar:vine-pixi-env
Open

btovar wants to merge 1 commit into
cooperative-computing-lab:masterfrom
btovar:vine-pixi-env

Conversation

@btovar

@btovar btovar commented Dec 2, 2026

Copy link
Copy Markdown
Member

pixi does not have something like conda-unpack, so it needs to install the env to the final location (e.g. the cache). We use two minitasks, one that creates the location, and a second that reads that location as a symlink and that unpacks the environment. It writes directly to the cache, which breaks the assumption that tasks do not modify anything in the cache.

Not sure if too hackish or too clever.

Proposed Changes

Give an overall description of the changes, along with the context and motivation.
Mention relevant issues and pull requests as needed.

Merge Checklist

The following items must be completed before PRs can be merged.
Check these off to verify you have completed all steps.

  • make test Run local tests prior to pushing.
  • make format Format source code to comply with lint policies. Note that some lint errors can only be resolved manually (e.g., Python)
  • make lint Run lint on source code prior to pushing.
  • Manual Update: Update the manual to reflect user-visible changes.
  • Type Labels: Select a github label for the type: bugfix, enhancement, etc.
  • Product Labels: Select a github label for the product: TaskVine, Makeflow, etc.
  • PR RTM: Mark your PR as ready to merge.

pixi does not have something like conda-unpack, so it
needs to install the env to the final location (e.g. the
cache). We use two minitasks, one that creates the location,
and a second that reads that location as a symlink and
that unpacks the environment. It writes directly to the cache,
which breaks the assumption that tasks do not modify anything
in the cache.

Not sure if too hackish or clever.
@dthain

dthain commented Dec 2, 2026

Copy link
Copy Markdown
Member

This is great, and nice to see that we can do it with the existing environment abstraction. But I'm thinking that we make this pixi environment constructor (and others) just part of the standard Taskvine library. So "use pixi like this" is right up front, but "how to make a custom environment" is somewhere deep in the documentation where AI can find it. How does that sound?

@btovar

btovar commented Dec 2, 2026

Copy link
Copy Markdown
Member Author

Sounds good!

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.

2 participants