def plat_prepare(self):
        self.includes.append("warnings") # needed by Python itself
        if not self.ascii:
            self.packages.append("encodings")
            self.includes.append("codecs")
        if self.bundle_files < 3:
            self.includes.append("zipextimporter")
            self.excludes.append("_memimporter") # builtin in run_*.exe and run_*.dll
        if self.compressed:
            self.includes.append("zlib")

        # os.path will never be found ;-)
        self.ignores.append('os.path')

        # update the self.ignores list to ignore platform specific
        # modules.
        if sys.platform == "win32":
            self.ignores += ['AL',
                             'Audio_mac',
                             'Carbon.File',
                             'Carbon.Folder',
                             'Carbon.Folders',
                             'EasyDialogs',
                             'MacOS',
                             'Mailman',
                             'SOCKS',
                             'SUNAUDIODEV',
                             '_dummy_threading',
                             '_emx_link',
                             '_xmlplus',
                             '_xmlrpclib',
                             'al',
                             'bundlebuilder',
                             'ce',
                             'cl',
                             'dbm',
                             'dos',
                             'fcntl',
                             'gestalt',
                             'grp',
                             'ic',
                             'java.lang',
                             'mac',
                             'macfs',
                             'macostools',
                             'mkcwproject',
                             'org.python.core',
                             'os.path',
                             'os2',
                             'poll',
                             'posix',
                             'pwd',
                             'readline',
                             'riscos',
                             'riscosenviron',
                             'riscospath',
                             'rourl2path',
                             'sgi',
                             'sgmlop',
                             'sunaudiodev',
                             'termios',
                             'vms_lib']
            # special dlls which must be copied to the exe_dir, not the lib_dir
            self.dlls_in_exedir = [python_dll,
                                   "w9xpopen%s.exe" % (is_debug_build and "_d" or ""),
                                   "msvcr71%s.dll" % (is_debug_build and "d" or "")]
        else:
            raise DistutilsError, "Platform %s not yet implemented" % sys.platform
dataset/ETHPy150Open fogleman/FeedNotifier/patch/build_exe.py/py2exe.plat_prepare/original