//python

//python:toolchain_type

Identifier for the toolchain type for the target platform.

This toolchain type gives information about the runtime for the target platform.It is typically implemented by thepy_runtime rule.

See also

Custom toolchains for how to define custom toolchains

//python:exec_tools_toolchain_type

Identifier for the toolchain type for exec tools used to build Python targets.

This toolchain type gives information about tools needed to build Python targetsat build time. It is typically implemented by thepy_exec_tools_toolchainrule.

See also

Custom toolchains for how to define custom toolchains

//python:current_py_toolchain

Helper target to resolve to the consumer’s current Python toolchain. This targetprovides:

  • PyRuntimeInfo: The consuming target’s target toolchain information

//python:autodetecting_toolchain

Legacy toolchain; despite its name, it doesn’t autodetect anything.

Deprecated since version 0.34.0:Use@rules_python//python/runtime_env_toolchains:all instead.

//python:none

A special target so that label attributes with default values can be set toNone.

Bazel interpretsNone to mean “use the default value”, whichmakes it impossible to have a label attribute with a default value that isoptional. To work around this, a target with a special provider is used;internally rules check for this, then treat the value asNone.

Added in version 0.36.0.