def alldeps( mod ):
    """ all deps: just iterate port deps ... breadth-first """
    bfs = [mod]
    done = {}
    while bfs:
        mod = bfs.pop( 0 )
        if mod in done:  continue
        deps = port_deps( mod )
        print_deps( mod, deps )
        done[mod] = 1
        bfs.extend( [d for d in deps if d not in done] )
 all deps: just iterate port deps ... breadth-first 
recipes/Python/576868_portalldeps_list_all_dependencies_Macports/recipe-576868.py