//python/extensions:config.bzl

Extension for configuring global settings of rules_python.

moduleextconfig

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 similarrules that represent some deployable unit. Settings added here canthen be used a keys with theconfig_settings attribute.

Note

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

Attributes:
  • setting(label)(defaultNone)

    The build setting to add.

    optional