Skip to content

pixi workspace export conda-environment should handle environment variables #5381

@sdvillal

Description

@sdvillal

Problem description

At the moment, exporting environments to conda.yml files would not export any defined variables to the environment.

Here you can see a brittle workaround here.

I guess logic is not as simple as it sounds, as variables could be defined on the basis of pixi-only environment. I would argue:

  • Any variable that is a literal or depends on conda standard variables (e.g., CONDA_PREFIX) should be exported as is.
  • Variables depending on pixi variables should still be exported but throw a warning (or assume default location and define in terms of CONDA_PREFIX where possible).

Or, to make it easy, we could just export everything as defined.

xref: aqlaboratory/openfold-3#34

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions