Open dzbarsky opened 11 months ago
This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_python!
This is still an active issues, please keep open
Potentially related: https://github.com/bazelbuild/rules_python/issues/2156
I'm not completely sure that this is caused by lack of site-packages, so I won't close this as a duplicate.
π bug report
Affected Rule
https://github.com/bazelbuild/rules_python/blob/fe33a4582c37499f3caeb49a07a78fc7948a8949/python/pip_install/tools/wheel_installer/namespace_pkgs.py#L90-L99
Is this a regression?
Not sure, first time I have tried this.
Description
The code in the package's source init.py seems to get overwritten. I'm not fully sure why, it appears that https://github.com/bazelbuild/rules_python/blob/fe33a4582c37499f3caeb49a07a78fc7948a8949/python/pip_install/tools/wheel_installer/namespace_pkgs.py#L87-L88 is trying to guard against it.
If possible, it would be nice to lay out a site_packages that is less hacky.
π¬ Minimal Reproduction
https://github.com/dzbarsky/rules_python_pylink_bug
bazel test //:flink_import_test
π₯ Exception or Error
π Your Environment
Operating System:
Output of
bazel version
:Rules_python version:
Anything else relevant?