rules_python
rules_python copied to clipboard
Bazel Python Rules
PR https://github.com/bazel-contrib/rules_python/pull/3242 mostly unifies how system_python and script bootstraps work. After that PR, the system_python bootstrap creates a venv-like file structure, except without pyvenv.cfg and bin/python3. It should be pretty...
- Similar to `python.defaults`'s `python_version_env` attribute, we add `python_version_env`, `sha256_env`, `strip_prefix_env`, `url_env` for corresponding attributes of `single_version_platform_override`, allowing reading those values from env vars. - Allow the python version specified...
This PR enables the `bootstrap` script implementation for bazel 8 and above for UNIX platforms. DO NOT MERGE: this has to be discussed: - [ ] Version number bump to...
Starting with Bazel 7.1, repository rules can use `repository_ctx.getenv()` to get environment variable values, and they no longer have to be listed in the `environ` attribute of the repo rule....
Over in [jax](https://github.com/jax-ml/jax) (and some related projects, like xla), they're currently using workspace and have a pretty bespoke way of configuring their toolchains and pip settings. They use environment variables...
# 🐞 bug report ### Affected Rule This affects the pip module extension ### Is this a regression? Not that I'm aware of, but I assume it's worked on windows...
The current runfiles library accepts runfile strings and returns file system strings. This works fine for looking up specific resources, but can break when trying to list resources in a...
# 🚀 feature request This is a request to get thoughts on contributing https://github.com/jpwoodbu/rules_python_interactive to `rules_python`. ### Relevant Rules Perhaps `py_binary` and `py_library`? ### Description I have made https://github.com/jpwoodbu/rules_python_interactive, which...
# 🐞 bug report ### Affected Rule `pip.parse` with the bazel downloader enabled ### Is this a regression? not sure ### Description with some config like this: ```bzl pip.parse( experimental_extra_index_urls...
This is a tracking issue to design and implement a rule, `py_extension` whose purpose is to create Python C extension objects. A Python C extension itself is fairly simple: a...