| commit | f7656d16f284c081aaef1c11991c1220b1ea6909 | [log] [tgz] |
|---|---|---|
| author | Shayan Hoshyari <108962133+shayanhoshyari@users.noreply.github.com> | Sat Dec 27 14:55:29 2025 -0800 |
| committer | GitHub <noreply@github.com> | Sat Dec 27 22:55:29 2025 +0000 |
| tree | 0e2f709e32216168b0c74d30866bc4cf11a1f43b | |
| parent | a94bd0fdde426bf30efed7c819422d74b404cc18 [diff] |
fix(--debugger): Ensure that imports or venv_site_package files are propagated for debugger target (#3483) https://github.com/bazel-contrib/rules_python/commit/a94bd0fdde426bf30efed7c819422d74b404cc18 recently added support for injecting dependencies for easier use of debugger. It allows injecting deps via `--@rules_python//python/config_settings:debugger=<target>`. While the runfiles from `<target>` were inherited in the final binary, the `imports` or `venv_site_packages` were missing. Hence making the debugger target unusable for various corner cases (e.g. when it uses `imports = ...` or when it is coming from pip hub and `venv_site_packages` are on). This PR fixes that, and extends the unit test to include this situation. Fixes: https://github.com/bazel-contrib/rules_python/issues/3481 --------- Co-authored-by: Shayan Hoshyari <hoshyari@adobe.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.