-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use best_platform
in a few places for cross-platform running
#1020
Conversation
fixes: #875 cc @corneliusroemer would be interested in your thoughts. |
How about a small warning when the platform doesn't match your system platform? |
Yes, agree with the warning. I had another thought - we could also do a setting as in
But not sure if this is not too verbose. Otherwise for configuration we would do somethign like:
And map the platforms on each other like this. |
I don't know enough about pixi to be of much help except for quite high-level feedback. Fallback sounds good, warning too. Make sense to allow disabling fallback. Happy to test drive if you have something I can run locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks very good to me :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feature sounds logical but I would like some documentation and examples to try it out myself. As I can't get it to work from what I've been trying based on this pr.
Enables the use of alternative PyPI registries. The definition of these can be specified per feature. There are certain rules for making unions out of these that are explained throughout the code. This adds the options for: * extra-index-urls * index-urls * find-links Which follows the familiar pypi conventions. These are deserialized and passed per environment or solve-group solve to uv. --------- Co-authored-by: Bas Zalmstra <zalmstra.bas@gmail.com> Co-authored-by: Bas Zalmstra <bas@prefix.dev> Co-authored-by: Ruben Arts <ruben.arts@hotmail.com>
Triggered by tip from @beenje
This is a draft. It adds a
best_platform
to most actions.The idea is that we allow the selection of another platform than the current one for "cross-platform" running. For example, Apple has implemented pretty good x86 emulation via Rosetta which means that most
osx-64
packages run very well onosx-arm64
.If a pixi.toml does not support
osx-arm64
(yet) we allow to fall back toosx-64
.This is especially important for
bioconda
as they are currently not building any packages forosx-arm64
.