full-author-61014
07/03/2024, 8:44 AM// "valid_for_interpreter_constraints": [
// "CPython>=3.10"
// ],
When running pants export --resolve=python-default
each team member gets a different python version exported to dist/export/python/virtualenvs/python-default
.
How can I pin the Python version used for local development for an export?shy-magazine-15006
07/03/2024, 8:51 AMpants.toml
[python]
interpreter_constraints = ["CPython==3.11.*"]
full-author-61014
07/03/2024, 8:54 AMinterpreter_constraints
of pex_binary
.
It's a normal thing for me to have a lockfile with open interpreter dependencies. Still for the local development venv I want to specify which version to pick.shy-magazine-15006
07/03/2024, 9:01 AMsquare-psychiatrist-19087
07/03/2024, 9:05 AMfull-author-61014
07/03/2024, 9:19 AMsquare-psychiatrist-19087
07/03/2024, 9:22 AM.pants.rc
locally then
[python]
interpreter_constraints = ["CPython==3.11.*"]
full-author-61014
07/03/2024, 9:32 AMsquare-psychiatrist-19087
07/03/2024, 9:33 AM