craft_parts.executor.environment module¶
Helpers to handle part environment setting.
- craft_parts.executor.environment.expand_environment(data, *, info, skip=None)[source]¶
Replace global variables with their values.
Global variables are defined by craft-parts and are the subset of the
CRAFT_*step execution environment variables that don’t depend on the part or step being executed. The list of global variables includeCRAFT_ARCH_TRIPLET,CRAFT_PROJECT_DIR,CRAFT_STAGEandCRAFT_PRIME. Additional global variables can be defined by the application using craft-parts.- Parameters:
data (
dict[str,Any]) – A dictionary whose values will have variable names expanded.info (
ProjectInfo) – The project information.skip (
list[str] |None) – Keys to skip when performing expansion.
- Return type:
None