<#15358 Add global interpreter_constraints for pan...
# github-notifications
c
#15358 Add global interpreter_constraints for pants tooling Issue created by kenhowardpdx Is your feature request related to a problem? Please describe. The problem arises when configuring a new tool where the default interpreter_constraints don't work on the current platform (apple silicon/M1). Describe the solution you'd like In some circumstances, it would be useful to have a global interpreter_constraints for tools like python, black, and coverage-py. Could
python_bootstrap
allow for
interpreter_constraints
so that each tool that relies on
python
would use this constraint rather than the default? Describe alternatives you've considered Presently we have these tools configured as follows:
Copy code
[GLOBAL]
pants_version = "2.11.0"
backend_packages.add = [
  "pants.backend.python",
  "pants.backend.python.lint.black",
]

[python]
interpreter_constraints = [">=3.9"]

[coverage-py]
interpreter_constraints = [">=3.9"]

[black]
interpreter_constraints = [">=3.9"]
pantsbuild/pants