Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.aspect.build/llms.txt

Use this file to discover all available pages before exploring further.

Documentation for @aspect_rules_py@v1.8.4 View source
Declare toolchains

Function: register_autodetecting_python_toolchain

Registers a Python toolchain that will auto detect the location of Python that can be used with rules_py. The autodetecting Python toolchain replaces the automatically registered one under bazel, and correctly handles the Python virtual environment indirection created by rules_py. However it is recommended to instead use one of the prebuilt Python interpreter toolchains from rules_python, rather than rely on the the correct Python binary being present on the host.

Parameters

name
name
required

Function: rules_py_toolchains

Create a downloaded toolchain for every tool under every supported platform.

Parameters

name
name
default:"rules_py_tools"
prefix used in created repositories
register
name
default:"True"
whether to call the register_toolchains, should be True for WORKSPACE and False for bzlmod.
is_prerelease
name
default:"True"
True iff there are no pre-built tool binaries for this version of rules_py