diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-11 13:19:43 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-22 11:57:04 -0400 |
| commit | 5c15c56a7e36c26d4e095d30a146e758890424b4 (patch) | |
| tree | 0d477c912779c6e0eae913705cfd91bdda14874a /src | |
| parent | 8e8406c1cc1f03e6d37a0997fc4107e340f8fb0e (diff) | |
| download | stasis-5c15c56a7e36c26d4e095d30a146e758890424b4.tar.gz | |
Set mamba-related environment variables
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/delivery/delivery_conda.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/delivery/delivery_conda.c b/src/lib/delivery/delivery_conda.c index 3938842..e879d1d 100644 --- a/src/lib/delivery/delivery_conda.c +++ b/src/lib/delivery/delivery_conda.c @@ -104,6 +104,7 @@ void delivery_install_conda(char *install_script, char *conda_install_dir) { } void delivery_conda_enable(struct Delivery *ctx, char *conda_install_dir) { + setenv("MAMBA_ROOT_PREFIX", ctx->storage.conda_install_prefix, 1); if (conda_activate(conda_install_dir, "base")) { SYSERROR("conda activation failed"); exit(1); @@ -115,6 +116,7 @@ void delivery_conda_enable(struct Delivery *ctx, char *conda_install_dir) { char rcpath[PATH_MAX]; snprintf(rcpath, sizeof(rcpath), "%s/%s", conda_install_dir, ".condarc"); setenv("CONDARC", rcpath, 1); + setenv("MAMBARC", rcpath, 1); if (runtime_replace(&ctx->runtime.environ, __environ)) { SYSERROR("unable to replace runtime environment after activating conda"); exit(1); |
