diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-02 18:50:44 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-02 18:55:49 -0400 |
commit | b7c7dd721d101bf24597b8ca1277998e8a798eb2 (patch) | |
tree | 18487741e32f22f0d5a8c5b861eb33b31540e9cb | |
parent | 66fbf329846a4a4dbf71e51efb370d56fa3a27a6 (diff) | |
download | stasis-b7c7dd721d101bf24597b8ca1277998e8a798eb2.tar.gz |
Process deferred package buids prior to populating the release environment.
-rw-r--r-- | src/main.c | 29 |
1 files changed, 13 insertions, 16 deletions
@@ -442,6 +442,19 @@ int main(int argc, char *argv[]) { } } + if (strlist_count(ctx.conda.pip_packages_defer)) { + if (!(ctx.conda.wheels_packages = delivery_build_wheels(&ctx))) { + exit(1); + } + if (delivery_copy_wheel_artifacts(&ctx)) { + exit(1); + } + if (delivery_index_wheel_artifacts(&ctx)) { + exit(1); + } + + } + // Populate the release environment msg(OMC_MSG_L1, "Populating release environment\n"); msg(OMC_MSG_L2, "Installing conda packages\n"); @@ -466,22 +479,6 @@ int main(int argc, char *argv[]) { msg(OMC_MSG_L3, "Installing deferred pip packages\n"); if (strlist_count(ctx.conda.pip_packages_defer)) { - struct StrList *wheel_files; - if (!(wheel_files = delivery_build_wheels(&ctx))) { - exit(1); - } - - // TODO: I want to believe the list returned by delivery_build_wheels - // TODO: intended for delivery_copy_wheel_artifacts... investigate. - guard_strlist_free(wheel_files); // unused for now - - if (delivery_copy_wheel_artifacts(&ctx)) { - exit(1); - } - if (delivery_index_wheel_artifacts(&ctx)) { - exit(1); - } - delivery_install_packages(&ctx, ctx.storage.conda_install_prefix, env_name, INSTALL_PKG_PIP | INSTALL_PKG_PIP_DEFERRED, (struct StrList *[]) {ctx.conda.pip_packages_defer, NULL}); } |