//python/extensions:config.bzl

Extension for configuring global settings of rules_python.

module ext config

Global settings for rules_python.

Added in version 1.7.0.

config.add_transition_setting(setting=None)

Specify a build setting that terminal rules transition on by default.

Terminal rules are rules such as py_binary, py_test, py_wheel, or similar rules that represent some deployable unit. Settings added here can then be used a keys with the config_settings attribute.

Note

This adds the label as a dependency of the Python rules. Take care to not refer to repositories that are expensive to create or invalidate frequently.

Attributes:
  • setting(label) (default None)

    The build setting to add.

    optional