rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

Bzlmod rule python pip extension generated package path without dot.

Open bfsoyc opened this issue 1 year ago • 0 comments

🚀 feature request

Relevant Rules

pip extensions with bzlmod

Description

I m migrating to Bazel 7.0 release with Bzlmod feature. Use the example in this repo to import pip dependancy. The new dir tree of the generate site-package is in the pattern rules_python~0.27.0~pip~pip_39_{package_name}, where I use rule_python of version 0.27.0 and register a python toolchain with 3.9. As you can see there's a dot in the file path and the folder contains a init.py file which implies it's a python module. We know it's bad for python. Some lint tool like pylint may fail to analysis them. Is it possible to prevent dot in file path?

Describe the solution you'd like

replace . with '_'

I m not sure if I miss anything by design.

Describe alternatives you've considered

bfsoyc avatar Feb 22 '24 10:02 bfsoyc