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

bitter-ability-32190

10/28/2021, 4:10 PM
Is there a way to know which version of Python
pants
is running & using for it's internal rules? I just noticed if I run
pants
from within/without some virtual env I have, it'll toggle between 2.7 (system-default) or 3.8 (virtual environment version)
For reference, we currently assume CPython 3.8 for everything we write. I have this set:
interpreter_constraints = ["CPython==3.8.*"]
and the system has
/usr/bin/python -> python2.7
, and
/usr/bin/python3.8
w

witty-crayon-22786

10/28/2021, 4:41 PM
the
pants
script requires >3.6, so it shouldn’t be running with 2.7 … some internal bits might be subprocessed that way though
the
pants
script is pretty transparent, but also pretty verbose. it will likely be simplified by shipping a PEX in the next few weeks as part of https://github.com/pantsbuild/pants/issues/12397
b

bitter-ability-32190

10/28/2021, 4:54 PM
Seems like I'm evaluating when y'all are on the cusp of several very beneficial changes 😂
3 Views