Skip to content

feat: pixi workspace export conda-environment handles env variables#5425

Merged
ruben-arts merged 1 commit intoprefix-dev:mainfrom
SrisharanVS:feat/env-variables-in-conda.yml
Feb 2, 2026
Merged

feat: pixi workspace export conda-environment handles env variables#5425
ruben-arts merged 1 commit intoprefix-dev:mainfrom
SrisharanVS:feat/env-variables-in-conda.yml

Conversation

@SrisharanVS
Copy link
Contributor

Description

This PR adds support for exporting environment variables to the conda-environment YAML output.
Previously, when running pixi workspace export conda-environment, variables defined under [activation.env] in the pixi.toml were ignored. This change ensures that all activation environment variables associated with the environment's features for the target platform are correctly included in the variables: section of the generated environment.yml.

image

Fixes #5381

How Has This Been Tested?

I executed pixi workspace export conda-environment in cases both with and without environment variables set

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

Copy link
Contributor

@ruben-arts ruben-arts left a comment

Choose a reason for hiding this comment

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

Thank you! Works for me.

@ruben-arts ruben-arts merged commit 64c97d4 into prefix-dev:main Feb 2, 2026
31 of 37 checks passed
@sdvillal
Copy link

sdvillal commented Feb 2, 2026

Will test, appreciated guys!

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.

pixi workspace export conda-environment should handle environment variables

3 participants