loud-stone-80561
11/14/2024, 5:38 AMloud-stone-80561
11/14/2024, 5:39 AMuv_requirements
didn't help, while resolving dependencies using vanilla uv
is quite fast (on the order of 10s of seconds or better)loud-stone-80561
11/14/2024, 5:43 AMhappy-kitchen-89482
11/14/2024, 3:40 PM--keep-sandboxes=always
and find the sandbox that ran the lockfile generation (the paths are logged to the console). In that sandbox is a __run.sh
file containing a pex command. That allows you to reproduce the problem directly in pex, outside of pants.happy-kitchen-89482
11/14/2024, 3:41 PMhappy-kitchen-89482
11/14/2024, 3:41 PMhappy-kitchen-89482
11/14/2024, 3:41 PMhappy-kitchen-89482
11/14/2024, 3:42 PMbetter-van-82973
11/14/2024, 7:34 PMWill note that switching todidn't helpuv_requirements
This macro doesn't use uv in the background, it just allows reading in requirements from the uv section of
pyproject.toml
. That's why it didn't run any faster for you than before, as pip is still doing the resolution in the backgroundloud-stone-80561
11/18/2024, 2:52 PMuv
for the lockfile generation/resolution itself?happy-kitchen-89482
11/18/2024, 9:18 PMhappy-kitchen-89482
11/18/2024, 9:19 PMhappy-kitchen-89482
11/18/2024, 9:19 PMhappy-kitchen-89482
11/18/2024, 9:20 PMuv
, since I don’t believe that resolving is CPU-bound. And in cases where it is, such as building an sdist, that has to happen in Python anyway…