//python/api:rule_builders.bzl

Public, rule building APIs for Python rules.

ruleb.ExecGroup(**kwargs)

Creates a builder forexec_group.

Args:
Returns:

ExecGroup

ruleb.Rule(**kwargs)

Builder for creating rules.

Args:
  • kwargs – The same as therule() function, but using builders ordicts to specify sub-objects instead of the immutable Bazelobjects.

ruleb.ToolchainType(name=None,**kwargs)

Creates a builder forconfig_common.toolchain_type.

Args:
Returns:

ToolchainType