Is there a way to know which version of Python `pa...
# general
b
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
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
Seems like I'm evaluating when y'all are on the cusp of several very beneficial changes 😂