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
70
70
* (gazelle) Switched back to smacker/go-tree-sitter, fixing
71
71
[ #2630 ] ( https://github.com/bazel-contrib/rules_python/issues/2630 )
72
72
* (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.
74
82
75
83
[ 20250723 ] : https://github.com/astral-sh/python-build-standalone/releases/tag/20250723
76
84
Original file line number Diff line number Diff line change @@ -245,8 +245,12 @@ Values:
245
245
::::{bzl: flag } bootstrap_impl
246
246
Determine how programs implement their startup process.
247
247
248
+ The default for this depends on the platform:
249
+ * Windows: ` system_python ` (** always** used)
250
+ * Other: ` script `
251
+
248
252
Values:
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
250
254
in order to start programs. This requires
251
255
{obj}` PyRuntimeInfo.bootstrap_template ` to be a Python program.
252
256
* ` script ` : Use a bootstrap that uses an arbitrary executable script (usually a
@@ -269,6 +273,11 @@ instead.
269
273
:::{versionadded} 0.33.0
270
274
:::
271
275
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
+
272
281
::::
273
282
274
283
::::{bzl: flag } current_config
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ string_flag(
90
90
91
91
rp_string_flag (
92
92
name = "bootstrap_impl" ,
93
- build_setting_default = BootstrapImplFlag .SYSTEM_PYTHON ,
93
+ build_setting_default = BootstrapImplFlag .SCRIPT ,
94
94
override = select ({
95
95
# Windows doesn't yet support bootstrap=script, so force disable it
96
96
":_is_windows" : BootstrapImplFlag .SYSTEM_PYTHON ,
You can’t perform that action at this time.
0 commit comments