hundreds-carpet-28072
10/28/2025, 10:56 AMbrief-scientist-13682
10/28/2025, 1:05 PMbrief-scientist-13682
10/28/2025, 1:06 PMhundreds-carpet-28072
10/28/2025, 1:10 PMuv.lock files to Pex lock files and was wondering about some of the underlying design logic related to what uv would refer to as resolution and fork strategies i.e. how Pex decides which version of a given dependency to pin to. I was hoping there’d be a lockfile schema/spec available but I can always just read the underlying code.brief-scientist-13682
10/28/2025, 1:12 PMbrief-scientist-13682
10/28/2025, 1:13 PMhundreds-carpet-28072
10/28/2025, 1:13 PMSo, Pex does not support forks. You get complete locks or none at all. In other words, in a given lock in Pex there is 1 qnd only 1 version for a given project. In uv, you can have many.That’s one thing I’d allowed to leave my memory, but I understand that now, yep.
brief-scientist-13682
10/28/2025, 1:13 PM--venv-repository for example allows you to just use uv and then build PEXes from venvs it creates.brief-scientist-13682
10/28/2025, 1:14 PMhundreds-carpet-28072
10/28/2025, 1:15 PMbrief-scientist-13682
10/28/2025, 1:16 PMbrief-scientist-13682
10/28/2025, 1:16 PMbrief-scientist-13682
10/28/2025, 1:16 PMhundreds-carpet-28072
10/28/2025, 1:16 PMbrief-scientist-13682
10/28/2025, 1:16 PMbrief-scientist-13682
10/28/2025, 1:17 PMbrief-scientist-13682
10/28/2025, 1:18 PMbrief-scientist-13682
10/28/2025, 1:19 PMbrief-scientist-13682
10/28/2025, 1:20 PMbrief-scientist-13682
10/28/2025, 1:20 PMbrief-scientist-13682
10/28/2025, 1:23 PM--pre-resolved-dists repository option a while back that would work with either of https://github.com/astral-sh/uv/issues/3163 or https://github.com/astral-sh/uv/issues/1681 but uv / uv contributors have not moved on those either.brief-scientist-13682
10/28/2025, 1:26 PMpants_ng these days. More than a year ago there was talk of the "new Python backend" (https://github.com/pantsbuild/pants/discussions/20897) ... I think some friendly pressure to actually get this all solved in a coherent way would be a good thing. That said, I'm sure everyone just has their current local problem to solve. Tragedy of the commons.hundreds-carpet-28072
10/28/2025, 1:30 PMbrief-scientist-13682
10/28/2025, 1:30 PMbrief-scientist-13682
10/28/2025, 1:32 PMhundreds-carpet-28072
10/28/2025, 2:43 PMbrief-scientist-13682
10/28/2025, 2:46 PMhundreds-carpet-28072
10/28/2025, 2:46 PMbrief-scientist-13682
10/28/2025, 2:46 PMhundreds-carpet-28072
10/28/2025, 2:47 PMbrief-scientist-13682
10/28/2025, 2:49 PMhundreds-carpet-28072
10/28/2025, 2:51 PMbrief-scientist-13682
10/28/2025, 2:52 PM.metadata on the end, and:
:; curl <https://files.pythonhosted.org/packages/7b/32/98de42122e114f131d17d872adb68870f15a165a1d873aa7b7690ea53951/pdm-2.26.0-py3-none-any.whl.metadata> | head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Metadata-Version: 2.4
Name: pdm
Version: 2.26.0
Summary: A modern Python package and dependency manager supporting the latest PEP standards
Keywords: packaging,dependency,workflow
Author-Email: Frost Ming <mianghong@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Topic :: Software Development :: Build Tools
Classifier: Programming Language :: Python :: 3
41 16496 41 6881 0 0 53902 0 --:--:-- --:--:-- --:--:-- 54181
curl: (23) Failure writing output to destination, passed 1378 returned 1311hundreds-carpet-28072
10/28/2025, 2:56 PMbrief-scientist-13682
10/28/2025, 3:02 PMThose performance benefits from what I know should be reapable without bumping Pants since I can just bump my Pex version. 😄
Although you can always bump your Pex version to get at new features since Pex never breaks backwards compatibility, it's not always easy to get at those features with Pants in the way. That said, Pants has been getting better at letting you use the underlying tools unfettered.
brief-scientist-13682
10/28/2025, 3:04 PM--pip-version (not sure exactly how you spell this in Pants config) to 25.3.hundreds-carpet-28072
10/28/2025, 3:11 PMbrief-scientist-13682
10/28/2025, 3:37 PMbrief-scientist-13682
10/28/2025, 3:39 PMbrief-scientist-13682
10/28/2025, 3:42 PMhundreds-carpet-28072
10/28/2025, 4:20 PMpants generate-lockfiles take ~ 6-7 mins with as much optimisation as I can muster, so getting that down to 2 mins would be great. Although I’ll still stick with the uv.lock conversion I’ve got going on. I’ll take a look at the PR, thanks for your help.curved-manchester-66006
10/28/2025, 8:02 PMwho knows.FWIW In the uv folks mostly choose to emphasize spiffy micro-optimizations. I don't think that is is wrong exactly, but I suspect a lot more comes from "use a better solver library" or "the pip cache system is a poor fit for modern file systems". There is also the type of changes proposed in https://github.com/pypa/pip/issues/12921 This is all at least to me interesting, but not terribly actionable.
Yeah - it would be good for someone in Pants land to truly grok the PyPA landscape.I don't disagree, but I'm also not sure anyone groks the whole PyPA landscape which is the self-reinforcing problem. I tried to follow some of the WheelNext psudo-draft-PEP discussions and it was not confidence inspiring. And meaningfully participating in one of the discussion would greatly exceed my "local problem to solve".
brief-scientist-13682
10/28/2025, 8:06 PMbrief-scientist-13682
10/28/2025, 8:08 PMbrief-scientist-13682
10/28/2025, 8:10 PMcurved-manchester-66006
10/28/2025, 8:30 PMThe fact the Python ecosystem is best served - by a very long shot - by a VC funded tool - is insane.Yes!
should switch to uv.Was that in terms of lockfile generation, or a broader reference?
brief-scientist-13682
10/28/2025, 8:33 PMbrief-scientist-13682
10/28/2025, 8:34 PMbrief-scientist-13682
10/28/2025, 8:34 PMcurved-manchester-66006
10/28/2025, 8:34 PMbrief-scientist-13682
10/28/2025, 8:35 PMbrief-scientist-13682
10/28/2025, 8:35 PMbrief-scientist-13682
10/28/2025, 8:38 PM--layout packed support. I think JS/TS may have been reminded of this problem lately though.brief-scientist-13682
10/28/2025, 8:49 PMcurved-manchester-66006
10/29/2025, 1:23 AMbrief-scientist-13682
10/29/2025, 1:30 AM