aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-06-21 15:57:34 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-06-21 15:57:34 -0400
commit038e656f9dd64e2f1e436f26bf61d07364949be7 (patch)
tree27b4c893ad0a5d301f5e3442ed5d4e1bcfb5e95d
parent27c475ccd857ca6f75605938ee0d83e13973672d (diff)
downloadstasis-038e656f9dd64e2f1e436f26bf61d07364949be7.tar.gz
Pass .ci_support/plat_arch_.yaml to conda-build
-rw-r--r--src/delivery.c17
1 files changed, 16 insertions, 1 deletions
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;