From b7c7dd721d101bf24597b8ca1277998e8a798eb2 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 2 Apr 2024 18:50:44 -0400 Subject: Process deferred package buids prior to populating the release environment. --- src/main.c | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 6f8c2dc..3c91df5 100644 --- a/src/main.c +++ b/src/main.c @@ -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}); } -- cgit