py_wheel: Add support for adding path prefix
🚀 feature request
Relevant Rules
py_wheel
Description
Support an attribute to add a path prefix to the import path. This will be opposite of the existing attribute - strip_path_prefixes. This is especially useful for packaging native extensions (.so) into a top-level namespace.
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 issue was automatically closed because it went 30 days without a reply since it was labeled "Can Close?"
Would love to see this re-opened - adding a prefix would be really useful.
Posterity. This looks pretty easy. Add an attribute to py_wheel rule. Pass it as an arg to wheelmaker action. In wheelmaker.py, when writing the package file into the wheel zip, prepend the path prefix. This is right around where the strip prefix code is.
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 issue was automatically closed because it went 30 days without a reply since it was labeled "Can Close?"
It's really a nice-have....