|
|
#define | DELIVERY_PLATFORM_MAX 4 |
|
#define | DELIVERY_PLATFORM_MAXLEN 65 |
|
#define | DELIVERY_PLATFORM 0 |
|
#define | DELIVERY_PLATFORM_CONDA_SUBDIR 1 |
|
#define | DELIVERY_PLATFORM_CONDA_INSTALLER 2 |
|
#define | DELIVERY_PLATFORM_RELEASE 3 |
|
#define | DELIVERY_REWRITE_SPEC_STAGE_1 0 |
|
#define | DELIVERY_REWRITE_SPEC_STAGE_2 1 |
|
#define | INSTALL_PKG_CONDA 1 << 1 |
| | Toggle conda package installation.
|
|
#define | INSTALL_PKG_CONDA_DEFERRED 1 << 2 |
| | Toggle deferred conda package installation.
|
|
#define | INSTALL_PKG_PIP 1 << 3 |
| | Toggle pip package installation.
|
|
#define | INSTALL_PKG_PIP_DEFERRED 1 << 4 |
| | Toggle deferred package installation from source.
|
|
#define | DEFER_CONDA 0 |
| | Build conda packages.
|
|
#define | DEFER_PIP 1 |
| | Build python packages.
|
|
#define | TEST_NUM_ALLOC_INITIAL 10 |
| | Number of test records to allocate (grows dynamically).
|
|
#define | DELIVERY_NOT_FOUND 0 |
|
#define | DELIVERY_FOUND 1 |
|
| int | delivery_init (struct Delivery *ctx, int render_mode) |
| void | delivery_free (struct Delivery *ctx) |
| void | delivery_meta_show (struct Delivery *ctx) |
| void | delivery_conda_show (struct Delivery *ctx) |
| void | delivery_tests_show (struct Delivery *ctx) |
| void | delivery_runtime_show (struct Delivery *ctx) |
| int | delivery_build_recipes (struct Delivery *ctx) |
| struct StrList * | delivery_build_wheels (struct Delivery *ctx) |
| int | delivery_index_wheel_artifacts (struct Delivery *ctx) |
| char * | delivery_get_release_header (struct Delivery *ctx) |
| void | delivery_rewrite_spec (struct Delivery *ctx, char *filename, unsigned stage) |
| int | delivery_copy_wheel_artifacts (struct Delivery *ctx) |
| int | delivery_copy_conda_artifacts (struct Delivery *ctx) |
| int | delivery_get_conda_installer (struct Delivery *ctx, char *installer_url) |
| void | delivery_get_conda_installer_url (struct Delivery *ctx, char *result, size_t maxlen) |
| int | delivery_install_packages (struct Delivery *ctx, char *conda_install_dir, char *env_name, int type, struct StrList *manifest[]) |
| int | delivery_index_conda_artifacts (struct Delivery *ctx) |
| void | delivery_tests_run (struct Delivery *ctx) |
| void | delivery_defer_packages (struct Delivery *ctx, int type) |
| void | delivery_conda_enable (struct Delivery *ctx) |
| void | delivery_install_conda (char *install_script, char *conda_install_dir) |
| int | delivery_format_str (struct Delivery *ctx, char **dest, size_t maxlen, const char *fmt) |
|
int | delivery_gather_tool_versions (struct Delivery *ctx) |
|
int | delivery_init_tmpdir (struct Delivery *ctx) |
|
void | delivery_init_dirs_stage1 (struct Delivery *ctx) |
|
void | delivery_init_dirs_stage2 (struct Delivery *ctx) |
|
int | delivery_init_platform (struct Delivery *ctx) |
|
int | delivery_init_artifactory (struct Delivery *ctx) |
|
int | delivery_artifact_upload (struct Delivery *ctx) |
|
int | delivery_mission_render_files (struct Delivery *ctx) |
|
int | delivery_docker (struct Delivery *ctx) |
|
int | delivery_fixup_test_results (struct Delivery *ctx) |
|
int | bootstrap_build_info (struct Delivery *ctx) |
|
int | delivery_dump_metadata (struct Delivery *ctx) |
|
int | populate_info (struct Delivery *ctx) |
|
int | populate_delivery_cfg (struct Delivery *ctx, int render_mode) |
|
int | populate_delivery_ini (struct Delivery *ctx, int render_mode) |
|
int | populate_mission_ini (struct Delivery **ctx, int render_mode) |
|
void | validate_delivery_ini (struct INIFILE *ini) |
|
int | filter_repo_tags (char *repo, struct StrList *patterns) |
|
void | delivery_autoresolve_vcs_urls (const char *srcdir) |
| int | delivery_exists (struct Delivery *ctx) |
|
int | delivery_overlay_packages_from_env (struct Delivery *ctx, const char *env_name) |
| int | delivery_conda_enforce_package_version (struct Delivery *ctx, const char *env_name, const char *name) |
| int | delivery_series_sync (struct Delivery *ctx) |
| int | delivery_purge_packages (struct Delivery *ctx, const char *env_name, int use_pkg_manager) |
| void | delivery_export (const struct Delivery *ctx, char *envs[]) |
| void | delivery_rewrite_stage1 (struct Delivery *ctx, char *specfile) |
| void | delivery_rewrite_stage2 (struct Delivery *ctx, char *specfile) |
| struct Delivery * | delivery_duplicate (struct Delivery *ctx) |
| struct Tests * | tests_init (size_t num_tests) |
| int | tests_add (struct Tests *tests, struct Test *x) |
| void | test_free (struct Test **x) |
| void | tests_free (struct Tests **x) |
| struct Test * | test_init () |
| int delivery_conda_enforce_package_version |
( |
struct Delivery * | ctx, |
|
|
const char * | env_name, |
|
|
const char * | name ) |
Conda does not handle version suffixes well, if at all. For example, if pkg-1.2.3rc1 is installed Conda will silently ignore a request to install pkg-1.2.3. This function serves as a workaround by comparing the version on-disk, and the requested version from the package list, and if the versions are not equal the on-disk package is replaced by the one in the package list.
When a package is present in the list without a pinned version it will be reinstalled with whatever is available