From 23adb30ad46fa977fbcc0ce786dbf852e68324f9 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 6 Feb 2024 10:33:14 -0500 Subject: Start building wheels again... * We don't really lose anything. Disk is cheap. * Even if not used by the delivery I feel like it might be useful to have a precompiled binary lying around. --- src/main.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 56158c8..0bd8873 100644 --- a/src/main.c +++ b/src/main.c @@ -470,7 +470,21 @@ int main(int argc, char *argv[], char *arge[]) { } msg(OMC_MSG_L3, "Installing deferred pip packages\n"); - 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}); + if (strlist_count(ctx.conda.pip_packages_defer)) { + // TODO: wheels would be nice, but can't right now + if (!delivery_build_wheels(&ctx)) { + exit(1); + } + 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}); + } + conda_exec("list"); -- cgit