-
-
Notifications
You must be signed in to change notification settings - Fork 574
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
Use pip repos with different names between different python versions #2530
Comments
Just what I wrote in #2529: Just to write here what I wrote in a related thread on Slack. I think what is happening here is:
There are ways to work around it:
The TCW snippet:
Not sure exactly how I can only think of the following two ideas:
None of them is ideal, but I am leaning towards the second one. I am also thinking that if the #1708 is fixed, then this could be a lesser issue. |
🐞 bug report
Affected Rule
This seems to be an "issue" when you using py_library and add a dependency to it that is in a pip repo not using your default python version. Hopefully I explained that correctly but I also opened a PR to make it easy to reproduce #2529.
Is this a regression?
I don't think so I have another version of rules python in use 0.32.2 I believe and it has the same issue.
Description
#2529 described better here but when using multiple repos and python versions and trying to use the library that contains a requirement from the non default and building it things blow up and look like this.
🔬 Minimal Reproduction
#2529 and just run
bezel test //...
insideexamples/multi_python_versions
.🔥 Exception or Error
See above
🌍 Your Environment
Operating System:
This is on a Mac but I believe it is independent of OS.
Output of
bazel version
:I have hit this on 7.x and 8..x
Rules_python version:
0.32.0 -> main
The text was updated successfully, but these errors were encountered: