| --- | |
| title: 'py' | |
| --- | |
| A configuration fragment for Python. | |
| ## Members | |
| * [build_python_zip](#build_python_zip) | |
| * [default_python_version](#default_python_version) | |
| * [default_to_explicit_init_py](#default_to_explicit_init_py) | |
| * [disallow_native_rules](#disallow_native_rules) | |
| * [include_label_in_linkstamp](#include_label_in_linkstamp) | |
| * [use_toolchains](#use_toolchains) | |
| ## build_python_zip {#build_python_zip} | |
| ``` | |
| bool py.build_python_zip | |
| ``` | |
| The effective value of --build_python_zip | |
| ## default_python_version {#default_python_version} | |
| ``` | |
| string py.default_python_version | |
| ``` | |
| No-op: PY3 is the default Python version. | |
| ## default_to_explicit_init_py {#default_to_explicit_init_py} | |
| ``` | |
| bool py.default_to_explicit_init_py | |
| ``` | |
| The value from the --incompatible_default_to_explicit_init_py flag | |
| ## disallow_native_rules {#disallow_native_rules} | |
| ``` | |
| bool py.disallow_native_rules | |
| ``` | |
| The value of the --incompatible_python_disallow_native_rules flag. | |
| ## include_label_in_linkstamp {#include_label_in_linkstamp} | |
| ``` | |
| bool py.include_label_in_linkstamp | |
| ``` | |
| Whether the build label is included in unstamped builds. | |
| ## use_toolchains {#use_toolchains} | |
| ``` | |
| bool py.use_toolchains | |
| ``` | |
| No-op: Python toolchains are always used. |