flat-scientist-26157
08/30/2023, 8:28 PM[python]
interpreter_constraints = ["==3.10.*"]
But running pants fmt uses 3.9 for black. We're using ubuntu where 3.9 by default is a bit stunted (e.g. missing parts of distutils).
I can fix this either by trying to make sure python3.9 has all the required pieces, or with:
[black]
interpreter_constraints = ["==3.10.*"]
Questions
1. Is there a way to have interpreter_constraints for tools use the [python] default or are both sections needed? I've seen some work e.g. https://github.com/pantsbuild/pants/pull/18714 but not sure what the current status is.
2. What are the tools using system python for? Aren't the default tool lockfiles supposed to have everything the tools need? Is there some bootstrapping phase which uses system python libraries?
Thanks!enough-analyst-54434
08/30/2023, 8:30 PMflat-scientist-26157
08/30/2023, 8:38 PMenough-analyst-54434
08/30/2023, 8:40 PMapt install Python X.Y-distutils.enough-analyst-54434
08/30/2023, 8:42 PMpythonX.Y-dev and then others like pythonX.Y-distutils, etc. Now that you know Debian distros chop up CPython this way, it should yield Google hits.flat-scientist-26157
08/30/2023, 8:45 PMflat-scientist-26157
08/30/2023, 8:47 PM