Skip to content

Commit b802ebf

Browse files
committed
docs: document the exec tools toolchain pieces
This makes it easier to know how to manually define `py_exec_tools_toolchain()`. Also doc the `inherit` value for the `pyc_collection` attribute.
1 parent 2a5ba18 commit b802ebf

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

docs/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ sphinx_stardocs(
9090
"//python:py_test_bzl",
9191
"//python/cc:py_cc_toolchain_info_bzl",
9292
"//python/entry_points:py_console_script_binary_bzl",
93+
"//python/private:py_exec_tools_info_bzl",
94+
"//python/private:py_exec_tools_toolchain_bzl",
9395
"//python/private/common:py_binary_rule_bazel_bzl",
9496
"//python/private/common:py_library_rule_bazel_bzl",
9597
"//python/private/common:py_runtime_rule_bzl",

python/private/common/py_executable.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ Determines whether pyc files from dependencies should be manually included.
9999
NOTE: This setting is only useful with {flag}`--precompile_add_to_runfiles=decided_elsewhere`.
100100
101101
Valid values are:
102+
* `inherit`: Inherit the value from {flag}`--pyc_collection`.
102103
* `include_pyc`: Add pyc files from dependencies in the binary (from
103-
`PyInfo.transitive_pyc_files`.
104+
{obj}`PyInfo.transitive_pyc_files`.
104105
* `disabled`: Don't explicitly add pyc files from dependencies. Note that
105106
pyc files may still come from dependencies if a target includes them as
106107
part of their runfiles (such as when {obj}`--precompile_add_to_runfiles=always`

0 commit comments

Comments
 (0)