Use different interpreter_constraints for pants-plugins #20862
-
First, thanks for the nice project! We are developing Pants plugins in our project following the instruction here. It seems that we have to use Python 3.9 for |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Pants itself runs on Python 3.9 at the moment (there are plans afoot to bump this to at least 3.11). It bundles its own interpreter, so you don't need to worry about that. EXCEPT - as you've noticed - when you write plugins, because they must run under 3.9. Pants does support multiple partitions of your codebase, each with different interpreter constraints, so that is probably the right way to do this? |
Beta Was this translation helpful? Give feedback.
Pants itself runs on Python 3.9 at the moment (there are plans afoot to bump this to at least 3.11). It bundles its own interpreter, so you don't need to worry about that. EXCEPT - as you've noticed - when you write plugins, because they must run under 3.9.
Pants does support multiple partitions of your codebase, each with different interpreter constraints, so that is probably the right way to do this?