File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ Re-exports the restricted-use py_internal helper under its original name.
1818These may change at any time and are closely coupled to the rule implementation.
1919"""
2020
21- # The py_internal object needs to be accessed only from "tools/build_defs/python", so
22- # we need to first put it there with a different name.
21+ # The native `py_internal` object is only visible to Starlark files under
22+ # `tools/build_defs/python`. To access it from `//python/private`, we use an
23+ # indirection through `//tools/build_defs/python/private/py_internal_renamed.bzl`,
24+ # which re-exports it under a different name.
2325load ("//tools/build_defs/python/private:py_internal_renamed.bzl" , "py_internal_renamed" ) # buildifier: disable=bzl-visibility
2426
2527py_internal = py_internal_renamed
You can’t perform that action at this time.
0 commit comments