craft_parts.executor.part_handler module

Definitions and helpers for part handlers.

class craft_parts.executor.part_handler.PartHandler(part, *, part_info, part_list, track_stage_packages=False, overlay_manager, ignore_patterns=None, base_layer_hash=None, build_environment=None)

Bases: object

Handle lifecycle steps for a part.

Parameters:
clean_step(step)

Remove the work files and the state of the given step.

Parameters:

step (Step) – The step to clean.

Return type:

None

run_action(action, *, stdout=None, stderr=None)

Execute the given action for this part using a plugin.

Parameters:
Return type:

None