If multiple interpreters satisfy `interpreter_cons...
# general
h
If multiple interpreters satisfy
interpreter_constraints
, which interpreter is chosen? How can I control which is chosen if e.g. I allow Py3.10-3.12, and want to force use Py3.11 for reasons?
g
You can set it on individual targets, if that's helpful. If you want to do this across the whole codebase you could override it as a command-line argument. Regarding "which is chosen" if you leave it open, I don't know unfortunately.
h
Maybe I can relax the question a bit: when pants selects an interpreter out of multiple valid options, is it guaranteed to keep selecting this one? I.e., is the selection 'ordered'.
I guess I should browse the code then.