Python and Bazel: Aspect’s rules_py
summary
rules_py is a layer on top of rules_python that builds per-target Python virtual environments (using the declared interpreter toolchain and a bash launcher) so runtime isolation and IDE virtualenv generation work without manipulating PYTHONPATH. It implements py_library, py_binary, py_test as starlark rules, adds first‑class wheel support and a “virtual dependencies” system where consumers resolve opaque tokens to concrete versions, enabling side‑by‑side dependency migrations; API is near 1.0 and interoperates with existing rules_python artifacts.
AI-written summary · about
related talks
20mA modern Python ruleset
27mPython in Bazel
09mBuilding a Hermetic Python Environment with Conda in Bazel
09mLightning Talk – A short overview of our company's journey to sandbox Python
07mLightning Talk – Python Dependencies the Right Way
33mPython-BPF: Writing eBPF programs in pure Python
30mPython Tricks You Can't Live Without
18mReproducible Builds with Bazel
