| --- | |
| 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) | |
| * [disable\_py2](#disable_py2) | |
| * [disallow\_native\_rules](#disallow_native_rules) | |
| * [use\_toolchains](#use_toolchains) | |
| ## build\_python\_zip | |
| ``` | |
| bool py.build_python_zip | |
| ``` | |
| The effective value of --build\_python\_zip | |
| ## default\_python\_version | |
| ``` | |
| string py.default_python_version | |
| ``` | |
| The default python version from --incompatible\_py3\_is\_default | |
| ## default\_to\_explicit\_init\_py | |
| ``` | |
| bool py.default_to_explicit_init_py | |
| ``` | |
| The value from the --incompatible\_default\_to\_explicit\_init\_py flag | |
| ## disable\_py2 | |
| ``` | |
| bool py.disable_py2 | |
| ``` | |
| The value of the --incompatible\_python\_disable\_py2 flag. | |
| ## disallow\_native\_rules | |
| ``` | |
| bool py.disallow_native_rules | |
| ``` | |
| The value of the --incompatible\_python\_disallow\_native\_rules flag. | |
| ## use\_toolchains | |
| ``` | |
| bool py.use_toolchains | |
| ``` | |
| The value from the --incompatible\_use\_python\_toolchains flag |