prefix-dev / rattler-build

rattler-build is a universal package builder for Windows, macOS and Linux
https://prefix-dev.github.io/rattler-build
BSD 3-Clause "New" or "Revised" License
185 stars 38 forks source link

Add support for CLI argument similar to --variants='{build_type: debug}' and/or --python=3.11 #938

Open Krande opened 2 months ago

Krande commented 2 months ago

Hey,

for local development it would be nice to have the ability to specify a specific variant to build. And also for CI it is nice to have the ability to split the variants across multiple jobs.

Adding support for CLI args such as --variants='{build_type: debug}' and/or --python=3.11 would really help in that direction.

If necessary, I am willing to take a stab at a PR with a little guidance as to where I should start?

Best Regards Kristoffer

wolfv commented 2 months ago

If you want to take a stab at this, it would be exciting! :)

I think this should create an "overlay variant file" that is added as the most priority variant file. The merging of variant files should already work in a way that the 'last one wins' - meaning the CLI variant python: ["3.11"] should replace any previously defined python variant versions.