uv icon indicating copy to clipboard operation
uv copied to clipboard

`uv lock` and platform-specific resolution

Open SamyAB opened this issue 1 year ago • 2 comments

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!

SamyAB avatar Aug 23 '24 09:08 SamyAB

There actually is since https://github.com/astral-sh/uv/pull/6210 — we need to update the documentation to clarify this.

zanieb avatar Aug 23 '24 13:08 zanieb

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

SamyAB avatar Aug 23 '24 15:08 SamyAB

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

charliermarsh avatar Dec 26 '24 16:12 charliermarsh