py
Stay organized with collections
Save and categorize content based on your preferences.
Report an issueopen_in_new
View sourceopen_in_new
Nightly
·
8.4
·
8.3
·
8.2
·
8.1
·
8.0
·
7.6
A configuration fragment for Python.
Members
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
disable_py2
bool py.disable_py2
No-op: PY2 is no longer supported.
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.
bool py.use_toolchains
No-op: Python toolchains are always used.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-26 UTC.
[null,null,["Last updated 2025-09-26 UTC."],[],[],null,[]]