commit | f4596fbc31fc4f2e32ced9c414a6fd42d54a7ff8 | [log] [tgz] |
---|---|---|
author | Richard Levasseur <rlevasseur@google.com> | Fri Sep 06 14:02:12 2024 -0700 |
committer | GitHub <noreply@github.com> | Fri Sep 06 21:02:12 2024 +0000 |
tree | 0413c843006cbfa2a3467011f20f407f6b718d88 | |
parent | 30bd94d1904c4701e1d19486a7ebcae2d6625a27 [diff] |
fix: allow disabling exec_tools toolchain from looking up an interpreter (#2194) This allow the exec_interpreter attribute to propagate None even though it's a label with a default value. Such attributes can't _directly_ be set to None because None means to use the default. To work around that, a sentinel target is used, which allows breaking the dependency on the default and triggering the rule to use None instead. A null exec interpreter is necessary in environments that don't provide a separate Python interpreter.
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.