cold-soccer-63228
05/19/2022, 9:04 PMpants.toml
file, we have the following:
[python]
interpreter_constraints = ["CPython==3.9.*"]
However, when he runs Pants commands, he sees the following line:
Bootstrapping Pants using /usr/local/bin/python3.7
This is problematic because we use Python 3.9 features, which is causing his runtime to fail. What is the reason that Python 3.7 is being used here?bitter-ability-32190
05/19/2022, 9:06 PMcold-soccer-63228
05/19/2022, 9:06 PMfrom typing import Final
typing.Final
isn't valid until Python 3.8 😕bitter-ability-32190
05/19/2022, 9:07 PMfrom __future__ import annotations
and then also if TYPECHECKING: from typing import Final
cold-soccer-63228
05/19/2022, 9:12 PMhappy-kitchen-89482
05/19/2022, 10:30 PM./pants
script to modify the interpreters it's willing to bootstrap withwide-midnight-78598
05/19/2022, 10:45 PMpants.rc
is definitely your friend on this one. My Xcode python get's periodically pulled in for some reason. At least it used to....