You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a pip_parse attribute to pass an SSL certificate聽#3915
After passing a custom certificate to compile_pip_requirements, we also need a way to pass a custom certificate, or another pip-related file (i.e. pip config with a certificate), to pip_parse.
I tried to find a way to do this, but it looks like pip_parse does not currently accept data or another label-based attribute for passing extra files to the repository rule.
Describe the solution you'd like
I would like pip_parse to support an additional label-based attribute for files needed by pip, for example extra_files, pip_config, or ssl_cert.
The most general option seems to be something like extra_files, because certificates can be passed to pip in more than one way: --cert=, PIP_CERT, or PIP_CONFIG_FILE.
Describe alternatives you've considered
The main alternative I considered is passing the pip config file or SSL certificate through PIP_CONFIG_FILE or PIP_CERT environment variables. However, this requires using raw paths, while I would prefer a Bazel-native labels approach.
If there is already a supported way to do such thing, please let me know.
For wheels in bzlmod we are not using pip to download anything. Please refer to the upstream bazel downloader documentation on configuring the certs. You asked for pip_parse rule, since WORKSPACE is on its way out, we will not prioritize, but can review PRs to fix this.
Activity
aignas commentedon Jul 10, 2026
For wheels in
bzlmodwe are not usingpipto download anything. Please refer to the upstream bazel downloader documentation on configuring the certs. You asked forpip_parserule, sinceWORKSPACEis on its way out, we will not prioritize, but can review PRs to fix this.