I don't know if this is a pants/pex issue, but cou...
# general
c
I don't know if this is a pants/pex issue, but could not find anything similar. I added pygerrit2 to my requirements.txt and when generating the lockfiles, pants fails with "No distribution metadata found for pygerrit2==2.0.15.". The output before that lists that it runs "creating '/tmp/pants-sandbox-UAgIup/.tmp/tmp7pxml3wz/build/pygerrit2-0.0.0.dist-info'" for some reason. Pip installs the package without issues. I did not find anything weird in the sandbox. Has anyone any suggestions about what to do about this? The breakage starts in 2.16.0.dev7, maybe the upgrade of pex to 2.1.122? But thankfully, 2.17.0.dev4 works fine.
e
This was fixed in Pex 2.1.126 (pygerrit2 2.0.15 is an sdist): https://github.com/pantsbuild/pex/releases/tag/v2.1.126 You can always upgrade Pex whatever your Pants version using the
[pex_cli]
subsystem options but Pants was upgraded past this for 2.17.0.dev0 and 2.16.0a0: + https://github.com/pantsbuild/pants/blob/main/src/python/pants/notes/2.17.x.md#2170dev0-mar-10-2023 + https://github.com/pantsbuild/pants/blob/main/src/python/pants/notes/2.16.x.md#2160a0-mar-06-2023
The bug you hit may have been the regression fixed in 2.1.123 actually: https://github.com/pantsbuild/pex/releases/tag/v2.1.123 But the upshot is the same, the Pex fixes are pulled in to latest 2.16.x and 2.17.x.
c
Great, thanks! If for whatever reason I need to go back with pants, I now know how to fix pex!