diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/conda.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/conda.h b/include/conda.h index 169bc58..c546672 100644 --- a/include/conda.h +++ b/include/conda.h @@ -10,8 +10,8 @@ #define PYPI_INDEX_DEFAULT "https://pypi.org/simple" struct MicromambaInfo { - char *micromamba_prefix; - char *conda_prefix; + char *micromamba_prefix; //!< Path to write micromamba binary + char *conda_prefix; //!< Path to install conda base tree }; /** @@ -183,6 +183,13 @@ int conda_env_export(char *name, char *output_dir, char *output_filename); */ int conda_index(const char *path); -int python_package_exists(const char *index_url, const char *name, const char *version); +/** + * Determine whether a simple index contains a package + * @param index_url a file system path or url pointing to a simple index + * @param name package name (required) + * @param version package version (may be NULL) + * @return not found = 0, found = 1, error = -1 + */ +int pip_index_provides(const char *index_url, const char *name, const char *version); #endif //STASIS_CONDA_H |