@contextmanager<EOL>def set_objects(objects):
_set_objects.variables = objects<EOL>try:<EOL><INDENT>yield<EOL><DEDENT>finally:<EOL><INDENT>_set_objects.variables = {}<EOL><DEDENT>
Set the objects made visible to early-bound attributes.

    For example, `objects` might be used to set a 'build_variant_index' var, so
    that an early-bound 'private_build_requires' can change depending on the
    currently-building variant.

    Args:
        objects (dict): Variables to set.