diff options
Diffstat (limited to 'src/lib/delivery/include/delivery.h')
-rw-r--r-- | src/lib/delivery/include/delivery.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/delivery/include/delivery.h b/src/lib/delivery/include/delivery.h index a3843f5..26a5499 100644 --- a/src/lib/delivery/include/delivery.h +++ b/src/lib/delivery/include/delivery.h @@ -141,8 +141,10 @@ struct Delivery { char *tool_build_version; ///< Installed version of "build" package struct StrList *conda_packages; ///< Conda packages to deliver struct StrList *conda_packages_defer; ///< Conda recipes to be built for delivery + struct StrList *conda_packages_purge; ///< Conda packages to remove from a delivery (for: based_on) struct StrList *pip_packages; ///< Python packages to install (pip) struct StrList *pip_packages_defer; ///< Python packages to be built for delivery + struct StrList *pip_packages_purge; ///< Python packages to remove from a delivery (for: based_on) struct StrList *wheels_packages; ///< Wheel packages built for delivery } conda; @@ -445,4 +447,16 @@ int delivery_overlay_packages_from_env(struct Delivery *ctx, const char *env_nam */ int delivery_series_sync(struct Delivery *ctx); +/** + * Remove packages from an environment + * @param ctx Delivery context + * @param env_name Name of conda environment + * @param use_pkg_manager PKG_USE_PIP + * @param use_pkg_manager PKG_USE_CONDA + * @returns -1 on error + * @returns 0 on success + * @returns >0 on failure + */ +int delivery_purge_packages(struct Delivery *ctx, const char *env_name, int use_pkg_manager); + #endif //STASIS_DELIVERY_H |