diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-24 10:21:22 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-24 10:21:22 -0400 |
| commit | 07600eb0df0af099a1c055f0a6c88114f2e857bd (patch) | |
| tree | 34e1e4e4b0f773c5e357667e33f02de56740ed5f /include/conda.h | |
| parent | ccc65c673e09c7a8f92f2f92aacb1b1b7753df8e (diff) | |
| download | stasis-07600eb0df0af099a1c055f0a6c88114f2e857bd.tar.gz | |
Move micromamba function out of stasis_indexer.c
* Adjust code in the indexer to accommodate the move. The function now expects a MicromambaInfo structure as its first argument.
Diffstat (limited to 'include/conda.h')
| -rw-r--r-- | include/conda.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/conda.h b/include/conda.h index 086a842..cea3f02 100644 --- a/include/conda.h +++ b/include/conda.h @@ -8,6 +8,20 @@ #define CONDA_INSTALL_PREFIX "conda" +struct MicromambaInfo { + char *micromamba_prefix; + char *conda_prefix; +}; + +/** + * Execute micromamba + * @param info MicromambaInfo data structure (must be populated before use) + * @param command printf-style formatter string + * @param ... variadic arguments + * @return exit code + */ +int micromamba(struct MicromambaInfo *info, char *command, ...); + /** * Execute Python * Python interpreter is determined by PATH |
