def require(builder_name):
    """Find an advertised autobuilder and return it

    This function searches through all installed distributions to find
    if any advertise an entry point with group 'iotile.autobuild' and
    name equal to builder_name.  The first one that is found is returned.

    This function raises a BuildError if it cannot find the required
    autobuild function

    Args:
        builder_name (string): The name of the builder to find

    Returns:
        callable: the autobuilder function found in the search
    """

    reg = ComponentRegistry()
    for _name, autobuild_func in reg.load_extensions('iotile.autobuild', name_filter=builder_name):
        return autobuild_func

    raise BuildError('Cannot find required autobuilder, make sure the distribution providing it is installed',
                     name=builder_name)
def require ( builder_name ) : reg = ComponentRegistry ( ) for _name , autobuild_func in reg . load_extensions ( 'iotile.autobuild' , name_filter = builder_name ) : return autobuild_func raise BuildError ( 'Cannot find required autobuilder, make sure the distribution providing it is installed' , name = builder_name )
Find an advertised autobuilder and return it

    This function searches through all installed distributions to find
    if any advertise an entry point with group 'iotile.autobuild' and
    name equal to builder_name.  The first one that is found is returned.

    This function raises a BuildError if it cannot find the required
    autobuild function

    Args:
        builder_name (string): The name of the builder to find

    Returns:
        callable: the autobuilder function found in the search