blob: 597b7ac4774570c6d7b8c9cfe01513febafb7536 [file]
---
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
```
bool py.build_python_zip
```
The effective value of --build\_python\_zip
## default\_python\_version
```
string py.default_python_version
```
No-op: PY3 is the default Python version.
## 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
```
bool py.disallow_native_rules
```
The value of the --incompatible\_python\_disallow\_native\_rules flag.
## include\_label\_in\_linkstamp
```
bool py.include_label_in_linkstamp
```
Whether the build label is included in unstamped builds.
## use\_toolchains
```
bool py.use_toolchains
```
No-op: Python toolchains are always used.