@@ -468,34 +468,34 @@ Currently the following flags are used to influence toolchain selection:
468468* {obj}` --@rules_python//python/config_settings:py_freethreaded ` for selecting
469469 the freethreaded experimental Python builds available from ` 3.13.0 ` onwards.
470470
471- ## Accessing the underlying interpreter
471+ ## Running the underlying interpreter
472472
473- To access the interpreter that bazel manages , you can use the
474- ` @rules_python//python/bin:interpreter ` target. This is a binary target with
473+ To run the interpreter that Bazel will use , you can use the
474+ ` @rules_python//python/bin:python ` target. This is a binary target with
475475the executable pointing at the ` python3 ` binary plus the relevent runfiles.
476476
477477```
478- $ bazel run @rules_python//python/bin:interpreter
478+ $ bazel run @rules_python//python/bin:python
479479Python 3.11.1 (main, Jan 16 2023, 22:41:20) [Clang 15.0.7 ] on linux
480480Type "help", "copyright", "credits" or "license" for more information.
481481>>>
482- $ bazel run @rules_python//python/bin:interpreter --@rules_python//python/config_settings:python_version=3.12
482+ $ bazel run @rules_python//python/bin:python --@rules_python//python/config_settings:python_version=3.12
483483Python 3.12.0 (main, Oct 3 2023, 01:27:23) [Clang 17.0.1 ] on linux
484484Type "help", "copyright", "credits" or "license" for more information.
485485>>>
486486```
487487
488488You can also access a specific binary's interpreter this way by using the
489- ` @rules_python//python/bin:interpreter_src ` target.
489+ ` @rules_python//python/bin:python_src ` target.
490490
491491```
492- $ bazel run @rules_python//python/bin:interpreter --@rules_python//python/bin:interpreter_src=//path/to:bin
492+ $ bazel run @rules_python//python/bin:python --@rules_python//python/bin:interpreter_src=//path/to:bin
493493Python 3.11.1 (main, Jan 16 2023, 22:41:20) [Clang 15.0.7 ] on linux
494494Type "help", "copyright", "credits" or "license" for more information.
495495>>>
496496```
497497
498498:::{note}
499- The interpreter target does not provide access to any modules from ` py_* `
499+ The ` python ` target does not provide access to any modules from ` py_* `
500500targets on its own. Work is ongoing to support that.
501501:::
0 commit comments