This may require to add contexts support to engine v2 builds.
This can be achieved by adding a contexts property to the build configuration that will map to available contexts from the recipes implementation. Contexts will be python contexts configured at runtime using exit stack and will provide a well defined set of env variables that scripts can use from within the context.