craft_parts.executor.step_handler module¶
Handle the execution of built-in or user specified step commands.
- class craft_parts.executor.step_handler.StagePartitionContents(files=<factory>, dirs=<factory>, backstage_files=<factory>, backstage_dirs=<factory>)[source]¶
Bases:
StepPartitionContentsFiles and directories for both stage and backstage in the step’s state.
- Parameters:
files (
set[str])dirs (
set[str])backstage_files (
set[str])backstage_dirs (
set[str])
-
backstage_dirs:
set[str]¶
-
backstage_files:
set[str]¶
- class craft_parts.executor.step_handler.StepContents(*, partitions=None, stage=False)[source]¶
Bases:
objectContents mapped to partitions.
- Parameters:
partitions (
list[str] |None)stage (
bool)
-
partitions_contents:
dict[str,StepPartitionContents|StagePartitionContents]¶
- class craft_parts.executor.step_handler.StepHandler(part, *, step_info, plugin, source_handler, env, stdout=None, stderr=None, partitions=None)[source]¶
Bases:
objectExecutes built-in or user-specified step commands.
The step handler takes care of the execution of a step, using either a built-in set of actions to be taken, or executing a user-defined script defined in the part specification User-defined scripts may also call the built-in handler for a step by invoking a control utility. This class implements the built-in handlers and a FIFO-based mechanism and API to be used by the external control utility to communicate with the running instance.
- Parameters:
part (
Part)step_info (
StepInfo)plugin (
Plugin)source_handler (
SourceHandler|None)env (
str)stdout (
TextIO|int|None)stderr (
TextIO|int|None)partitions (
list[str] |None)