feat: allow using build backends from source#4145
feat: allow using build backends from source#4145baszalmstra merged 18 commits intoprefix-dev:mainfrom
Conversation
remimimimimi
left a comment
There was a problem hiding this comment.
Just couple of comments, otherwise awesome!
|
Looking forward to test drive this with a few build backends that I have cooking. |
|
@nichmor @remimimimimi I wonder if there is a way we can test this without having to resort to a complex python based end-2-end test.. Maybe you have thoughts? |
Could write tests in rust using combination of assert_cmd and assert_fs. |
How I was thinking is that we can pin the backends from |
|
Because it is relatively slow, it needs to fetch repodata, fetch packages, install packages, and run external programs. That's why I introduced the in-memory backend, it allows us to completely remove that. |
Yeah true - do you think we could build them also from source? |
| .into()]), | ||
| )) | ||
| .await | ||
| .unwrap(); |
There was a problem hiding this comment.
I think it would be good to validate that it also rebuilds, this seems to work locally.
Also is there any way we can make this faster? This is a 25 second test.
There was a problem hiding this comment.
That seems odd! Since its using the in-memory backend!
There was a problem hiding this comment.
- wdym by rebuilds? if source code change, does it automatically reinstall the backend? if this - it will be fixed in a follow up PR
- regarding the speed - strange. I will take a look
…baszalmstra/pixi into feat/build-backends-from-source
This PR enables using build backends from source specifications. E.g. you can build build-backends from source! We already had the machinery in place to do this but we just quite didnt have this enabled in the manifest yet. This PR now unlocks doing:
This doesnt work just quite yet because we currently have no
pixi.tomls defined for any of our build backends. But that should be an easy fix!TODO