diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPyRuleClasses.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPyRuleClasses.java index 042c2fd9f77285..b6746ab0964a70 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPyRuleClasses.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/python/BazelPyRuleClasses.java @@ -223,8 +223,7 @@ responsible for creating (possibly empty) __init__.py files and adding them to t .add( attr("$py_toolchain_type", NODEP_LABEL) .value(env.getToolsLabel("//tools/python:toolchain_type"))) - /* Only used when no py_runtime() is available. - (when --incompatible_use_python_toolchains=false --python_path is used on Windows) + /* Only used when no py_runtime() is available. See #7901 */ .add( attr("$default_bootstrap_template", LABEL) diff --git a/src/main/starlark/builtins_bzl/common/python/providers.bzl b/src/main/starlark/builtins_bzl/common/python/providers.bzl index 5d4e0d297a1fe6..0c37b662ce02dd 100644 --- a/src/main/starlark/builtins_bzl/common/python/providers.bzl +++ b/src/main/starlark/builtins_bzl/common/python/providers.bzl @@ -100,9 +100,7 @@ the same conventions as the standard CPython interpreter. "apply to Windows." ), "bootstrap_template": ( - "The bootstrap script template file to use. Should have %python_binary%, " + - "%workspace_name%, %main%, and %imports%. See " + - "@bazel_tools//tools/python:python_bootstrap_template.txt for more variables." + "See py_runtime_rule.bzl%py_runtime.bootstrap_template for docs." ), }, )