Toolchain for build-time tools.
Provides a toolchain for build time tools.
This provides ToolchainInfo
with the following attributes:
exec_tools
: PyExecToolsInfo
toolchain_label
: Label
only present when --visibile_for_testing=True
for internal testing. The rule’s label; this allows identifying what toolchain implmentation was selected for testing purposes.
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