-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Make a value of 'imports' property of py_library rule visible in Skylark #2617
Comments
@lberki what do you think? |
I just ran into this while attempting to figure out how to build a Python mono-repo that puts separate Python packages in different sub-directories. We would like to be able to use PEX, since that can package pre-built wheels which Bazel doesn't support yet. While trying to figure out how to write custom rules to support this, I discovered that I can't because I can't access |
I work around this by parsing the imports list from the generated stub files, but it's a brittle solution that doesn't work on Windows, and occasionally breaks for other reasons. |
ran into this as well -- there are workarounds but the cleanest way is to have |
Fixes bazelbuild#2617. Basically just re-packaging the code and tests from srikalyan#1.
Fixes bazelbuild#2617. Basically just re-packaging the code and tests from srikalyan#1.
In most cases that parameter indicates a path to library's sources and widely used along with
new_[git|local]_repository
rules in order to setup import path for external python libraries.In some cases all such libraries should go through additional processing, like for example, if library is used with AppEngine you need to put it into a folder which is known to AppEngine to be able to import it properly.
The text was updated successfully, but these errors were encountered: