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
Which I use to generate a universal requirements.txt with uv using: uv pip compile --universal requirements.in -o requirements_lock.txt --emit-index-url --no-strip-markers, I end up with multiple entries for torch in that lockfile:
SNIP
torch==2.4.1+cpu ; platform_machine == 'x86_64'
# via -r requirements.in
torch==2.4.1 ; platform_machine != 'x86_64'
# via -r requirements.in
SNIP
ERROR: Traceback (most recent call last):
File "/private/var/tmp/_bazel_ksmiley/edd497f7df052e6d5ffcf384da842af2/external/rules_python~~pip~pip/torch/BUILD.bazel", line 9, column 35, in <toplevel>
"//_config:is_python_3.11": "pip_311_torch_linux_x86_64_osx_x86_64_windows_x86_64",
Error: dictionary expression has duplicate key: "//_config:is_python_3.11"
ERROR: /private/var/tmp/_bazel_ksmiley/edd497f7df052e6d5ffcf384da842af2/external/rules_python~~pip~pip/torch/BUILD.bazel: no such target '@@rules_python~~pip~pip//torch:pkg': target 'pkg' not declared in package 'torch' defined by /private/var/tmp/_bazel_ksmiley/edd497f7df052e6d5ffcf384da842af2/external/rules_python~~pip~pip/torch/BUILD.bazel
ERROR: /Users/ksmiley/Downloads/pyrepro/BUILD.bazel:3:6: no such target '@@rules_python~~pip~pip//torch:pkg': target 'pkg' not declared in package 'torch' defined by /private/var/tmp/_bazel_ksmiley/edd497f7df052e6d5ffcf384da842af2/external/rules_python~~pip~pip/torch/BUILD.bazel and referenced by '//:foo'
ERROR: Analysis of target '//:foo' failed; build aborted: Analysis failed
This setup temporarily worked after this landed #2377 but then regressed in 2abca35
…ms set
It seems that during bazelbuild#2424 I broke the rendering of aliases for the
cases when the target platform is set. This means that the feature for
multiplatform whls when `experimental_index_url` has never worked even
though it was advertised. This ensures that the rendering is happening
correctly and adds extra missing tests.
Whilst at it:
- add an extra test for `pip.parse` handling of env markers that I added
to ensure that the error is not in the module extension.
- Cleanup unused code - error message constant and the repo arg in
`whl_config_setting`.
Fixesbazelbuild#2446
If I have a
requirements.in
like this:Which I use to generate a universal requirements.txt with uv using:
uv pip compile --universal requirements.in -o requirements_lock.txt --emit-index-url --no-strip-markers
, I end up with multiple entries for torch in that lockfile:When I attempt to pull those in with:
and use them with:
It fails with:
This setup temporarily worked after this landed #2377 but then regressed in 2abca35
🔬 Minimal Reproduction
Build in this project: pyrepro.zip
The text was updated successfully, but these errors were encountered: