'Yield write_script() argument tuples for a distribution\'s entrypoints'

@classmethod
def get_script_args(cls, dist, executable=sys_executable, wininst=False):

    gen_class = cls.get_writer(wininst)
    spec = str(dist.as_requirement())
    header = get_script_header('', executable, wininst)
    for type_ in ('console', 'gui'):
        group = (type_ + '_scripts')
        for (name, ep) in dist.get_entry_map(group).items():
            script_text = (gen_class.template % locals())
            for res in gen_class._get_script_args(type_, name, header, script_text):
                (yield res)
