rules/python/source.js
Developer reference: this page includes exported implementation details. BUILD authors should prefer the User API reference.
pythonToolchain()
pythonToolchain(version, { default: isDefault = false } = {})
Declare a pinned CPython runtime used by source-file runs. The interpreter is provisioned by uv into its existing shared cache; this label intentionally models the selected version, not a second downloader. A handleless label, like pythonResolve() — addressable, referenced by pythonSources()-discovered children via .data, no goal handlers.
defaultPythonToolchain()
defaultPythonToolchain()
Undocumented.
defaultPythonProject()
defaultPythonProject()
Undocumented.