Skip to content
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

uv lock and platform-specific resolution #6503

Closed
SamyAB opened this issue Aug 23, 2024 · 3 comments
Closed

uv lock and platform-specific resolution #6503

SamyAB opened this issue Aug 23, 2024 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation question Asking for clarification or support

Comments

@SamyAB
Copy link

SamyAB commented Aug 23, 2024

The documentation says:

By default, uv's pip interface, i.e., uv pip compile, produces a resolution that is platform-specific, like pip-tools. There is no way to use platform-specific resolution in the uv's project interface.

Does the last sentence mean that there is currently no way to create a platform-specific lockfile with uv lock, or there will never be one?

If it's the latter, I am curious to know why.

The reason I am asking this is because it happens quite often that I work on both x86 and armv7l architectures, and having a lockfile for x86 that points to pypi-like registry and a lockfile for armv7l that points to a piwheels-like registry is very useful.

Thank you for the awesome work!

@zanieb
Copy link
Member

zanieb commented Aug 23, 2024

There actually is since #6210 — we need to update the documentation to clarify this.

@zanieb zanieb added documentation Improvements or additions to documentation question Asking for clarification or support labels Aug 23, 2024
@SamyAB
Copy link
Author

SamyAB commented Aug 23, 2024

That gets me 95% of the way there, thanks!

@zanieb zanieb self-assigned this Aug 23, 2024
@charliermarsh
Copy link
Member

See: https://docs.astral.sh/uv/concepts/projects/config/#limited-resolution-environments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

3 participants