From 038e656f9dd64e2f1e436f26bf61d07364949be7 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 21 Jun 2024 15:57:34 -0400 Subject: Pass .ci_support/plat_arch_.yaml to conda-build --- src/delivery.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/delivery.c b/src/delivery.c index e77d41c..740da68 100644 --- a/src/delivery.c +++ b/src/delivery.c @@ -1031,7 +1031,22 @@ int delivery_build_recipes(struct Delivery *ctx) { } char command[PATH_MAX]; - sprintf(command, "mambabuild --python=%s .", ctx->meta.python); + + if (RECIPE_TYPE_CONDA_FORGE == recipe_type) { + char selector[STASIS_NAME_MAX] = {0}; + sprintf(selector, "%s_", ctx->system.platform[DELIVERY_PLATFORM]); + if (strstr(ctx->system.arch, "64")) { + strcat(selector, "64"); + } else if (strstr(ctx->system.arch, "arm64")) { + strcat(selector, "arm64"); + } else { + strcat(selector, "32"); // blind guess + } + tolower_s(selector); + sprintf(command, "mambabuild --python=%s -m ../.ci_support/%s_.yaml .", ctx->meta.python, selector); + } else { + sprintf(command, "mambabuild --python=%s .", ctx->meta.python); + } status = conda_exec(command); if (status) { return -1; -- cgit