-
-
Notifications
You must be signed in to change notification settings - Fork 570
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
pip.parse attempts to download dependencies for unsupported platforms #2634
Comments
if you generate a universal lockfile to try and solve this you end up hitting #2622 |
I think there's another subtle version of this where I've noticed it downloading the wheels for unsupported platforms too:
which like in this example can potentially be quite large |
Regarding: https://github.com/bazelbuild/rules_python/pull/2633/files#r1976390864 Right now the way to restrict the requirements_by_platform = {
"//my:requirements.txt": "osx_aarch64,linux_aarch64,linux_x86_64",
} As opposed to |
Ah nice thanks! I didn't think to try that combo! I verified that solves the first repro, but I get a similar error with a universal requirements file with that change, repro here #2643
but maybe we just roll that into #2622 ? the difference in my mind is the requirements markers are much less complicated in this case vs the torch case, since pywin should never be pulled |
🐞 bug report
Affected Rule
pip.parse
Is this a regression?
Unclear
Description
If you generate platform specific requirements.txt files, and then provide them to
pip.parse
withrequirements_by_platform
, and also setexperimental_target_platforms
,pip.parse
still attempts to download dependencies that are platform specific.🔬 Minimal Reproduction
On this branch #2633 run
bazel query 'deps(...)'
on a Linux machine🔥 Exception or Error
In this case it attempts to find a windows specific dependency, even though windows isn't supported, and the current host isn't windows.
🌍 Your Environment
Operating System:
linux x86_64
Output of
bazel version
:8.1.0
Rules_python version:
branch above
Anything else relevant?
I think there was another issue about this in the past but I can't find it.
The text was updated successfully, but these errors were encountered: