-
Notifications
You must be signed in to change notification settings - Fork 547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pypi] Support pulling dependencies using direct url specifiers without using an index #2363
Comments
Please see the documentation here: https://rules-python.readthedocs.io/en/latest/pypi-dependencies.html#bazel-downloader-and-multi-platform-wheel-hub-repository. This currently has a limitation that it needs hashes for all of the files in the |
@aignas How can I use
|
The support for direct references has not been added yet, I'll reopen this issue and rename it to scope it to supporting it, but I am not sure when I can work on it.
For the second one it may be harder - I am not sure how to handle git repos yet, however, with bazel 7.4 the extension can pass a labels within the extension more easily, so one could look into how to do that. For now the workaround would be to build the wheels from |
rctx.download()
🐞 bug report
Affected Rule
Module extension:
Is this a regression?
Not sure.
Description
The repository rule for pip dependencies doesn't use
repository_ctx.download()
. This breaks usages of--experimental_downloader_config
for example to use a transparent dependency mirror.🔬 Minimal Reproduction
rules_python/python/private/pypi/whl_library.bzl
Lines 245 to 256 in b6fc2a0
rules_python/python/private/pypi/whl_installer/wheel_installer.py
Lines 168 to 190 in b6fc2a0
🔥 Exception or Error
Stack trace prints to the code linked above.
🌍 Your Environment
Operating System:
Linux
Output of
bazel version
:7.0.2
Rules_python version:
0.37.2
Anything else relevant?
The text was updated successfully, but these errors were encountered: