Installing platform dependent wheel files results in distribution cache error
Summary
@zanieb @charliermarsh
This is similar to Issue #1491.
I am using an enterprise package as described below under the corporate firewall so have to install it from local file system.
However when I run uv lock --native-tls or uv lock --native-tls --no-cache , it results in error for line which has detail for Linux package.
Caused by: Failed to read from the distribution cache Caused by: failed to rename file from \?\C:\\users
I suspected that in uv/cache it tries to the rename nxpy Folder in temp folder. When we install the packages, win and Linux both versions have same directory name. However, if I use a separate package versions for windows and Linux, the error disappears.
[tool.uv.sources] nxpy = [ { path = "nxdist/nxpy-21.3.4-cp310-cp310-win_amd64.whl", marker = "platform_system == 'Windows'" }, { path = "nxdist/nxpy-21.3.4-cp310-cp310-linux_x86_64.whl", marker = "platform_system == 'Linux'" } ]
Platform
Windows 10
Version
uv 0.8.4
Python version
python 3.10.10
Source: astral-sh/uv