commit | 4e70959c1ec2629581989fb2145fe65cab101360 | [log] [tgz] |
---|---|---|
author | Richard Levasseur <rlevasseur@google.com> | Thu Jun 27 19:30:17 2024 -0700 |
committer | GitHub <noreply@github.com> | Fri Jun 28 02:30:17 2024 +0000 |
tree | ce7d820d5348d8207f93080adb84701179e89c4e | |
parent | 11133b3e593243868a7a5926dab4fec5d455df40 [diff] |
feat: add runtime_env toolchain suite to replace "autodetecting" toolchain (#2018) This adds a more comprehensive replacement for the "autodetecting" toolchain. Specifically, it defines all our toolchain types so that they take precedence when specified. This prevents the hermetic toolchains (registered by default) from accidentally being used when undesired. To keep the behavior backwards compatible, an alias is added for the autodetecting toolchain with a deprecation notice. The name `runtime_env` was chosen instead of "autodetecting" so that it's more clear these toolchains are not "automatic" or "detecting" anything -- they're just taking a value from the runtime environment and using it. --------- Co-authored-by: Ignas Anikevicius <240938+aignas@users.noreply.github.com>
This repository is the home of the core Python rules -- py_library
, py_binary
, py_test
, py_proto_library
, and related symbols that provide the basis for Python support in Bazel. It also contains package installation rules for integrating with PyPI and other indices.
Documentation for rules_python is at https://rules-python.readthedocs.io and in the Bazel Build Encyclopedia.
Examples live in the examples directory.
The core rules are stable. Their implementation is subject to Bazel's backward compatibility policy. This repository aims to follow semantic versioning.
The Bazel community maintains this repository. Neither Google nor the Bazel team provides support for the code. However, this repository is part of the test suite used to vet new Bazel releases. See How to contribute page for information on our development workflow.
For detailed documentation, see https://rules-python.readthedocs.io
See Bzlmod support for more details.