Im trying to create an in-repo plugin where the re...
# plugins
n
Im trying to create an in-repo plugin where the rest of my python sources are using
interpreter_constraints = ['==3.10.*']
from
pants.toml
but I am having a hard time wrapping my head around the interpreter requirements for pants itself. I can't ever seem to generate lockfiles as no candidate of
pants
is available for python 3.10. I've tried setting an
interpreter-constraints = ['==3.9.*']
on the
python_sources
in the plugin build file but it had no effect. Is there a more complete example I could look at?
āœ… 1
b
Yeah, that's confusing. I don't know about an example, but I suspect you may be able to progress further with: • a dedicated resolve for the pants plugin • set the ICs for that resolve with https://www.pantsbuild.org/docs/reference-python#resolves_to_interpreter_constraints
n
Oh I bet that's exactly it. I don't have a constraint mapped to the plugin resolve. Thank you!
Update; that worked
šŸŽ‰ 2