Members
PyInfo
PyInfo constructor.
Parameters
| Parameter | Description |
|---|---|
transitive_sources | depset of Files; required The value for the new object’s transitive_sources field. |
uses_shared_libraries | default is False The value for the new object’s uses_shared_libraries field. |
imports | depset of strings; default is unbound The value for the new object’s imports field. |
has_py2_only_sources | default is False The value for the new object’s has_py2_only_sources field. |
has_py3_only_sources | default is False The value for the new object’s has_py3_only_sources field. |
has_py2_only_sources
has_py3_only_sources
imports
PYTHONPATH of executable Python targets. These are accumulated from the transitive deps.
The order of the depset is not guaranteed and may be changed in the future. It is recommended to use default order (the default).
transitive_sources
postorder-compatible) depset of .py files appearing in the target’s srcs and the srcs of the target’s transitive deps.
uses_shared_libraries
deps has a shared library file (such as a .so file).
This field is currently unused in Bazel and may go away in the future.