Skip to main content

ExecutionPlatformRegistrationInfo

Provider that gives the list of all execution platforms available for this build.

def ExecutionPlatformRegistrationInfo(
*,
platforms: list[ExecutionPlatformInfo],
fallback: None | str | ExecutionPlatformInfo = None,
exec_marker_constraint: None | str = None,
) -> ExecutionPlatformRegistrationInfo

ExecutionPlatformRegistrationInfo.exec_marker_constraint​

ExecutionPlatformRegistrationInfo.exec_marker_constraint: None | str

Optional marker constraint that identifies platforms as execution platforms. If set, every execution platform in platforms will be marked with this constraint, allowing to distinguish execution platforms from target platforms.


ExecutionPlatformRegistrationInfo.fallback​

ExecutionPlatformRegistrationInfo.fallback: None | str | ExecutionPlatformInfo

Specifies the behavior when no compatible execution platform is found from the platforms list. Can be one of: - None or "use_unspecified": Proceed with an unspecified execution platform. This allows the build to continue without explicitly matching an execution platform. - "error": Fail the build with an error message indicating no compatible platform was found. - An ExecutionPlatformInfo: Use this specific platform as a fallback when no other platform from the platforms list matches.


ExecutionPlatformRegistrationInfo.platforms​

ExecutionPlatformRegistrationInfo.platforms: list[ExecutionPlatformInfo]

The list of execution platforms that are available for the build.


Implements​

A value of this type is accepted where one of these is wanted.