A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://rules-python.readthedocs.io/en/latest/api/rules_python/python/py_exec_tools_toolchain.html below:

Website Navigation


//python:py_exec_tools_toolchain.bzl — rules_python 0.0.0 documentation

//python:py_exec_tools_toolchain.bzl

Toolchain for build-time tools.

rule py_exec_tools_toolchain(name, exec_interpreter='@rules_python//python/private:current_interpreter_executable', precompiler=None)

Provides a toolchain for build time tools.

This provides ToolchainInfo with the following attributes:

Attributes:
  • name(Name)

    A unique name for this target.

    mandatory

  • exec_interpreter(label) (default “@rules_python//python/private:current_interpreter_executable”)

    An interpreter that is directly usable in the exec configuration

    If not specified, the interpreter from //python:toolchain_type will be used.

    To disable, specify the special target //python:none; the raw value None will use the default.

    Note

    This is only useful for ctx.actions.run calls that directly invoke the interpreter, which is fairly uncommon and low level. It is better to use a cfg="exec" attribute that points to a py_binary rule instead, which will handle all the necessary transitions and runtime setup to invoke a program.

    See PyExecToolsInfo.exec_interpreter for further docs.

    Changed in version 1.4.0: From now on the provided target also needs to provide platform_common.ToolchainInfo so that the toolchain py_runtime field can be correctly forwarded.

    optional

    Required providers: [DefaultInfo, ToolchainInfo]

  • precompiler(label) (default None)

    See PyExecToolsInfo.precompiler

    optional


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4