def process_dependencies(process):
    """
    Collect dependencies (p->actions) for a given process.

    :param process: Process.
    :return: {p: {actions}}
    """
    dependencies_map = dict()
    for action in (a for a in process.actions.values() if a.require):
        for name, v in action.require.items():
            dependencies_map.setdefault(name, set())
            dependencies_map[name].update(v.get('include', set()))

    return dependencies_map