rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

Bazel Python Rules

Results 536 rules_python issues
Sort by recently updated
recently updated
newest added

# 🚀 feature request ### Relevant Rules `py_wheel` ### Description As I'm porting a project from `setup.py` to `py_wheel`, I find three files missing from the `dist-info` directory in the...

# Problem Pip dependencies are implemented awkwardly, causing all sort of caveats. For example: * Pip dependencies by default don't work with bzlmod. You have to vendor requirements.bzl. * But...

Bazel version: 5.3.0 https://buildkite.com/bazel/rules-python-python/builds/3354#0183343a-e3ab-4002-b05c-4ded8e084418 ``` ERROR: /private/var/tmp/_bazel_buildkite/f3697e6ef7c4e31b44fe772d5dbb54ce/sandbox/darwin-sandbox/176/execroot/rules_python/bazel-out/darwin-fastbuild/bin/python/tests/toolchains/run_test_3.8.10.sh.runfiles/rules_python/python/tests/toolchains/3.8.10/WORKSPACE:24:27: fetching python_repository rule //external:python_x86_64-apple-darwin: Traceback (most recent call last): File "/private/var/tmp/_bazel_buildkite/f3697e6ef7c4e31b44fe772d5dbb54ce/sandbox/darwin-sandbox/176/execroot/rules_python/_tmp/3133f8fa17c5cdeae066ed9fd24d0258/_bazel_buildkite/07d2b9d41e251e7189a7d6b1dbbf6391/external/rules_python/python/repositories.bzl", line 253, column 17, in _python_repository_impl rctx.symlink(python_bin, "python") Error in symlink: java.io.IOException:...

# 🚀 feature request ### Relevant Rules pip_install_dependencies macro from `@rules_python//python/pip_install/repositories.bzl` ### Description In our CI, we frequently see download errors caused by failing to download dependencies from rules_python. For...

# 🚀 feature request * [x] Add support for getting Python headers (Python.h) -- use `@rules_python//python/cc:current_py_cc_headers` * [x] Provide shared libraries (libpython.so et al) -- use `@rules_python//python/cc:current_py_cc_libs` * [ ]...

type: feature request

Generating `requirement.bzl` with annotations assumes the existance of the pip_parse repo. (e.g. `@pip//:example.annotatons.json`) The point of vendoring requirements.bzl is to avoid the necessity of the pip_parse repo.

# 🚀 feature request ### Relevant Rules `pip_install` ### Description Is there a way to add additional dependencies to `pip_install` -- specifically (for example) the library [PyAudio](https://pypi.org/project/PyAudio/), a wrapper for...

## PR Checklist Please check if your PR fulfills the following requirements: - [ ] Tests for the changes have been added (for bug fixes / features) - [ ]...

# 🐞 bug report ### Is this a regression? Not AFAIK. ### Description When an interpreter is downloaded, `rules_python` names the affiliated `libpython` as `libpython.so.1.0` (https://github.com/bazelbuild/rules_python/blob/main/python/repositories.bzl#L206) When used as a...

Generate alias packages and targets for `pip_parse` under the parent repository. This serves two purposes. It allows for users to reference packages using a simpler `@pypi//package_name` without the import issues...