https://pantsbuild.org/ logo
#general
Title
# general
c

calm-artist-46894

02/05/2020, 6:24 PM
Hi what’s the plan to update to
pex  2.x
for pantsbuild? There are more and more libraries dropping python2 support for their latest version and pants will resolve to the latest version for many transitive dependencies (which is not pinned in BUILD) even for python2 target, then we get errors like:
Copy code
Exception message: Package SourcePackage('file:///home/bpierce/github.robot.car/cruise/ark/.pants.d/python-setup/resolved_requirements/CPython-2.7.17/grpcio-1.27.0.tar.gz') is not translateable by ChainedTranslator(WheelTranslator, EggTranslator, SourceTranslator)
We can pin the transitive dependencies in our BUILD file to workaround the issue for now.
w

witty-crayon-22786

02/05/2020, 6:38 PM
would read the history in the #pex room, and repeat your question there probably
@calm-artist-46894: but: have you considered pining the version? you can still do that.
by explicitly specifying it.
c

calm-artist-46894

02/05/2020, 6:39 PM
We can pin the transitive dependencies in our BUILD file to workaround the issue for now.
that’s what we are doing now
w

witty-crayon-22786

02/05/2020, 6:39 PM
ah, sorry.
🙂 1
that is, in general, a good idea 😃
c

calm-artist-46894

02/05/2020, 6:41 PM
My understanding is pex 2.x fix the issue by vendoring the packaging resolving logic to pip; so if pants update to pex 2.x, then the issue would be gone?
w

witty-crayon-22786

02/05/2020, 6:42 PM
pip will not prevent floating versions from causing you issues
(lockfiles and pining will!)
h

happy-kitchen-89482

02/05/2020, 8:57 PM
We are working on lockfile support, should have a proposal up soon.
Re pip not preventing floating versions from causing issues, I think pip handles python version constraints better than pex 1.x does?
The pex 2.x upgrade is very close, as well. Will check on exact status,.
5 Views