| commit | b304fc66888b9a8266e31de928469d39dce55743 | [log] [tgz] |
|---|---|---|
| author | Richard Levasseur <rlevasseur@google.com> | Fri Nov 15 18:35:01 2024 -0800 |
| committer | GitHub <noreply@github.com> | Sat Nov 16 02:35:01 2024 +0000 |
| tree | 88b522f87dc26bb597fb6d654031f7ef7be84f3c | |
| parent | 155efce562f14d46530fb5bec698a11e2ee889f5 [diff] |
fix: keep import path values if Bazel-builtin PyInfo is removed (#2415) The collect_imports() function added import strings from BuiltinPyInfo if it was non-None. However, operator precedence caused the `if-else` ternary to ignore both list comprehensions (one for PyInfo and one for BuiltinPyInfo) if BuiltinPyInfo was None. To fix, I rewrote the function as a regular for loop to eliminate the ambiguous looking ternary expression. Fixes: https://github.com/bazelbuild/rules_python/issues/2414
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.