-
Notifications
You must be signed in to change notification settings - Fork 384
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
[bazel, rules_python] Unable to get correct Python path from whl? #6930
Comments
I unfortunately don't know anything about Bazel build setups, but I suppose there's some issue about the package being called |
I know nothing about bezel, but I'm kind of surprised by that
Also, for records, this what I have in my
You may want to check if you have that |
yeah, I think that it's because the module is under
yeah, it seems like closing this issue, as it seems like a bazel |
Reopening this issue, if only for visibility. Although this technically seems to be a Bazel problem, it's is triggered by some packaging trick we are doing using that |
I'm kind of surprised our approach there has held up as long as it has. For context, the number one thing our .pth hackery exists to achieve is to save us from collateral damage being caused by the rerun package in pypi-managed environments. Especially in the early days of Rerun it was very common for people to pip install rerun instead of pip install rerun-sdk. This wouldn't have been quite so bad in-and-of-itself, but we also felt strongly that import rerun was superior to import rerun_sdk. In theory we CAN just install rerun as a top-level package, but if a user ever installs rerun package accidentally, the files stomp on each other and to get back in a clean state you have to uninstall rerun and then force-reinstall rerun-sdk. And since pypi provides no way of declaring a mutual exclusion with another package, there was no way to prevent this. Scoping rerun as a sub-package of rerun_sdk and injecting it into the top-level package path via a .pth file keeps us from having any conflicting files, and avoiding the need for that reinstall. We need some way to provide a target for bazel users that users an alternative layout that avoids the need for |
Describe the bug
Relates bazelbuild/rules_python#2071
To Reproduce
See repro in linked issue, i.e,.
https://github.com/EricCousineau-TRI/repro/tree/e084a7434286cf426a71350f79755c7cbab6d6eb/bazel/rules_python_rerun
Workaround: EricCousineau-TRI/repro@96e1336
Expected behavior
Things are declared such that
rules_python
generates rules that have correctPYTHONPATH
Screenshots
N/A
Backtrace
N/A
Desktop (please complete the following information):
Rerun version
0.17.0
Additional context
using
bazel
build system +rules_python
The text was updated successfully, but these errors were encountered: