def sources(cls, interpreter):
     is_py2 = interpreter.version_info.major == 2
     for host_exe, targets in cls._executables(interpreter):
         yield ExePathRefToDest(host_exe,
                                dest=cls.to_bin,
                                targets=targets,
                                must_copy=is_py2)
 def sources(cls, interpreter):
     for host_exe, targets, must, when in cls._executables(interpreter):
         yield ExePathRefToDest(host_exe,
                                dest=cls.to_bin,
                                targets=targets,
                                must=must,
                                when=when)