fresh-cat-90827
07/19/2021, 9:45 PM[python-setup]
interpreter_constraints = ["CPython==3.6.*", "CPython==3.8.*"]
will Pants always pick up the Python 3.6.*
if both 3.6.*
and 3.8.*
are available? I’ve read that the comma separated versions would be representing the OR
constraint, so if 3.6 is found (even if 3.8 is present as well), it will be used, but just wanted to double-check.hundreds-father-404
07/20/2021, 1:40 AMhundreds-father-404
07/20/2021, 7:52 AMfresh-cat-90827
07/20/2021, 8:16 AMpyenv
to force people install Python 3.6 interpreter (however, they can if they want to). Therefore we rely on XCode 12 which provides Python 3.8.2. So if a developer didn’t explicitly make a Python 3.6 environment available on $PATH
, then we try to fallback on the XCode’s Python 3.8.2.
The same interpreter_constraints
are used in CI as well, where it’s picking up 3.6 (as you said it goes with the minimal version). Which lets us be sure it’s Python 3.6 compatible (and no one has used a walrus operator 🙂 ). Does this make sense or have I made it more complicated than it should have been?