mamba-org / setup-micromamba

GitHub Action to set up micromamba
MIT License
105 stars 16 forks source link

`init-shell` doesn't properly set variables like CONDA_PREFIX #146

Closed aldanor closed 1 year ago

aldanor commented 1 year ago

Build tools like maturin may rely on CONDA_PREFIX (or VIRTUAL_ENV) environment variables to determine the current Python environment to build bindings for.

With the old provision-micromamba you would do micromamba activate foo && maturin build, but now it wouldn't detect the correct Python interpreter.

Should those environment variables be set in init-shell?

pavelzw commented 1 year ago

These environment variables come from micromamba activate foo. This should also be available in setup-micromamba. Do you have a failing example?