def get_dependency_tuple_list_for_recipe(recipe, blacklist=None):
    """ Get the dependencies of a recipe with filtered out blacklist, and
        turned into tuples with fix_deplist()
    """
    if blacklist is None:
        blacklist = set()
    assert(type(blacklist) == set)
    if recipe.depends is None:
        dependencies = []
    else:
        # Turn all dependencies into tuples so that product will work
        dependencies = fix_deplist(recipe.depends)

        # Filter out blacklisted items and turn lowercase:
        dependencies = [
            tuple(set(deptuple) - blacklist)
            for deptuple in dependencies
            if tuple(set(deptuple) - blacklist)
        ]
    return dependencies
def get_dependency_tuple_list_for_recipe ( recipe , blacklist = None ) : if blacklist is None : blacklist = set ( ) assert ( type ( blacklist ) == set ) if recipe . depends is None : dependencies = [ ] else : dependencies = fix_deplist ( recipe . depends ) dependencies = [ tuple ( set ( deptuple ) - blacklist ) for deptuple in dependencies if tuple ( set ( deptuple ) - blacklist ) ] return dependencies
Get the dependencies of a recipe with filtered out blacklist, and
        turned into tuples with fix_deplist()