//python/api:executables.bzl
Loading-phase APIs specific to executables (binaries/tests).
Added in version 1.3.0.
- executables.executable_rule_builder(implementation,**kwargs)
Create a rule builder for an executable Python program.
Important
Public, but volatile, API. Some parts are stable, while others areimplementation details and may change more frequently.
An executable rule is one that sets either
executable=Trueortest=True,and the output is something that can be run directly (e.g.bazelrun,exec(...)etc)Added in version 1.3.0.
- Args:
implementation–undocumentedkwargs–undocumented
- Returns:
ruleb.Rulewith the necessary settingsfor creating an executable Python rule.
- executables.py_binary_rule_builder()
Create a rule builder for a py_binary.
Important
Public, but volatile, API. Some parts are stable, while others areimplementation details and may change more frequently.
Added in version 1.3.0.
- Returns:
ruleb.Rulewith the necessary settingsfor creating apy_binaryrule.
- executables.py_test_rule_builder()
Create a rule builder for a py_test.
Important
Public, but volatile, API. Some parts are stable, while others areimplementation details and may change more frequently.
Added in version 1.3.0.
- Returns:
ruleb.Rulewith the necessary settingsfor creating apy_testrule.