rules_py
rules_py copied to clipboard
[Idea]: Python toolchains of different weights
As noted by some users, the Python toolchains with rules_python configures by default are kinda heavyweight because they include docs, headers and stiff like TKinter which is rarely used in hermetic production contexts (Docker).
It'd be neat of the new uv machinery was able to feature flag to a "build mode" build/test interpreter configuration, allowing users to potentially register Python toolchains which match a heavier weight "build mode" and allowing for the user to potentially configure trimmed down interpreters for terminal binary use cases.