feat: expands options for setting pixi-build override options #2843
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This expands the options for overriding the build backends, which can be very useful when testing stuff out. This also changes how different build protocol implementations react to this override.
The problem with the way that it was previously done is that the override could only be done for one build backend which would be applied to all build backends. So if you override
pixi-build-python
it would also overridepixi-build-cmake
with the override, which made it somewhat useless.I've now added more elaborate machinery where we can override each backend individually, you can also choose to override all backends with the system installed once, this assumes access on a system level and that the names of the specs and executables match up.
tl;dr
Testing
I've tested by using this branch (prefix-dev/pixi-build-backends#47) that kind of breaks the protocol and used the environment variables for testing the override.
Giving me something like in the boltons and cpp-sdl example:
Unsure how I can nicely test this in CI.