File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed
docs/api/rules_python/python/config_settings Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,15 @@ END_UNRELEASED_TEMPLATE
7070* (gazelle) Switched back to smacker/go-tree-sitter, fixing
7171 [ #2630 ] ( https://github.com/bazel-contrib/rules_python/issues/2630 )
7272* (ci) We are now testing on Ubuntu 22.04 for RBE and non-RBE configurations.
73- * (core) #!/usr/bin/env bash is now used as a shebang in the stage1 bootstrap template.
73+ * (core) ` #!/usr/bin/env bash ` is now used as a shebang in the stage1 bootstrap template.
74+ * If using the (deprecated) autodetecting/runtime_env toolchain, then the Python
75+ version specified at build-time * must* match the Python version used at
76+ runtime (the {obj}` --@rules_python//python/config_settings:python_version `
77+ flag and the {attr}` python_version ` attribute control the build-time version
78+ for a target). If they don't match, dependencies won't be importable. (Such a
79+ misconfiguration was unlikely to work to begin with; this is called out as an
80+ FYI).
81+ * (rules) {obj}` --bootstrap_impl=script ` is the default for non-Windows.
7482
7583[ 20250723 ] : https://github.com/astral-sh/python-build-standalone/releases/tag/20250723
7684
Original file line number Diff line number Diff line change @@ -245,8 +245,12 @@ Values:
245245::::{bzl: flag } bootstrap_impl
246246Determine how programs implement their startup process.
247247
248+ The default for this depends on the platform:
249+ * Windows: ` system_python ` (** always** used)
250+ * Other: ` script `
251+
248252Values:
249- * ` system_python ` : (default) Use a bootstrap that requires a system Python available
253+ * ` system_python ` : Use a bootstrap that requires a system Python available
250254 in order to start programs. This requires
251255 {obj}` PyRuntimeInfo.bootstrap_template ` to be a Python program.
252256* ` script ` : Use a bootstrap that uses an arbitrary executable script (usually a
@@ -269,6 +273,11 @@ instead.
269273:::{versionadded} 0.33.0
270274:::
271275
276+ :::{versionchanged} VERSION_NEXT_FEATURE
277+ * The default for non-Windows changed from ` system_python ` to ` script ` .
278+ * On Windows, the value is forced to ` system_python ` .
279+ :::
280+
272281::::
273282
274283::::{bzl: flag } current_config
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ string_flag(
9090
9191rp_string_flag (
9292 name = "bootstrap_impl" ,
93- build_setting_default = BootstrapImplFlag .SYSTEM_PYTHON ,
93+ build_setting_default = BootstrapImplFlag .SCRIPT ,
9494 override = select ({
9595 # Windows doesn't yet support bootstrap=script, so force disable it
9696 ":_is_windows" : BootstrapImplFlag .SYSTEM_PYTHON ,
You can’t perform that action at this time.
0 commit comments