pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Setting variables per environment

Open jamesmyatt opened this issue 9 months ago • 6 comments

Looks like the equivalent of the "variables" table in the conda environment yaml is the "activation" table. It looks like this table is applied to all environments, but in multi-environment configs, e.g. when using different dependencies in different environments, or when the environments are substantially different from one another, you may need to set the environment variables differently to match. What's the "proper" way to do this? I think this is different from the per-task and per-target settings.

jamesmyatt avatar Feb 26 '25 13:02 jamesmyatt

Oh. There's an activation table per feature: https://pixi.sh/latest/reference/pixi_manifest/#the-feature-table.

jamesmyatt avatar Feb 26 '25 13:02 jamesmyatt

But maybe that section needs to be updated to make it clearer all of the places the activation table can be defined.

jamesmyatt avatar Feb 26 '25 13:02 jamesmyatt

Hi @jamesmyatt , I noticed the issue was closed, but since it was mentioned that the documentation could be clearer about where the activation table can be defined, would it be helpful if I submitted a small PR improving that section? If yes, could you please assign this issue to me? Happy to help!

Ehtesham-Zahid avatar Apr 26 '25 13:04 Ehtesham-Zahid

Thank you. It's still open. But I can't assign it since I'm not a maintainer.

jamesmyatt avatar Apr 26 '25 13:04 jamesmyatt

Thank you. It's still open. But I can't assign it since I'm not a maintainer.

Thanks for letting me know!

Ehtesham-Zahid avatar Apr 26 '25 14:04 Ehtesham-Zahid

Hi @nichmor and @baszalmstra , Could you please assign this issue to me? Thanks in advance!

Ehtesham-Zahid avatar Apr 26 '25 14:04 Ehtesham-Zahid