Newbie question: when running `pants_from_source` ...
# general
b
Newbie question: when running
pants_from_source
to test changes, is interpreter constraint
==3.9.*
somehow added? I've been building with
==3.10.*
and its been working fine on 2.13 rc, but running from source is failing because of conflicting constraints
e
Pants must itself run on >=3.7,<3.10 so that's coming in conflict there.
b
so I have both 3.9 and 3.10 on PATH, and when running pants prod version, it worked out ok
e
The difference here is you're using Pants from sources. We don't have that setup to handle multiple resolves, which I think is what you'd need here.
Someone else may be able to provide guidance from experience working around this. I'm not sure how you'd do it off the top of my head.
b
I see. Thanks. Not a blocker for now, I can adjust to 3.9 and test my changes
e
If you can do that, definitely best for now.
h
wait is this for a pants plugin? generally the version of Python used to run Pants != the version used for your own code, except for Pants plugins
e
A plugin may or may not be involved. This is using pants from sources.
Does that just work with conflicting ICs in the top level pants.toml?
h
It should. It simply runs our
./pants
bash script from
pantsbuild/pants
, which can be a different Python version than
[python].interpreter_constraints
https://github.com/pantsbuild/example-python/blob/main/pants_from_sources#L23