You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more documentation, see the bzlmod examples under the {gh-path}`examples`
152
190
folder. Look for the examples that contain a `MODULE.bazel` file.
@@ -159,6 +197,16 @@ The `python.toolchain()` call makes its contents available under a repo named
159
197
Remember to call `use_repo()` to make repos visible to your module:
160
198
`use_repo(python, "python_3_11")`
161
199
200
+
201
+
:::{deprecated} 1.1.0
202
+
The toolchain specific `py_binary` and `py_test` symbols are aliases to the regular rules.
203
+
i.e. Deprecated `load("@python_versions//3.11:defs.bzl", "py_binary")` & `load("@python_versions//3.11:defs.bzl", "py_test")`
204
+
205
+
Usages of them should be changed to load the regular rules directly;
206
+
i.e. Use `load("@rules_python//python:py_binary.bzl", "py_binary")` & `load("@rules_python//python:py_test.bzl", "py_test")` and then specify the `python_version` when using the rules corresponding to the python version you defined in your toolchain. {ref}`Library modules with version constraints`
207
+
:::
208
+
209
+
162
210
#### Toolchain usage in other rules
163
211
164
212
Python toolchains can be utilized in other bazel rules, such as `genrule()`, by
@@ -508,4 +556,4 @@ of available toolchains.
508
556
Currently the following flags are used to influence toolchain selection:
509
557
* {obj}`--@rules_python//python/config_settings:py_linux_libc` for selecting the Linux libc variant.
510
558
* {obj}`--@rules_python//python/config_settings:py_freethreaded` for selecting
511
-
the freethreaded experimental Python builds available from `3.13.0` onwards.
559
+
the freethreaded experimental Python builds available from `3.13.0` onwards.
0 commit comments