1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
import py2exe
from distutils.core import setup import sys
if len(sys.argv) == 1: sys.argv.append("py2exe") sys.argv.append("-q")
class Target: def __init__(self, **kw): self.__dict__.update(kw) self.version = "1.0.0.3" self.company_name = u"niwho" self.copyright = "Copyright (c) 2015 niwho." self.name = "~~"
target = Target( description = u"~~", script = "pccmanger.py", icon_resources = [(1, r'mty.ico')], dest_base = "PCC_Stratupbat", uac_info= "requireAdministrator", )
options = {"py2exe": {
"dist_dir":"./pccmanager", "compressed":1, "optimize": 2, "bundle_files":1 ,"dll_excludes": [ "MSVCP90.dll", "mswsock.dll", "powrprof.dll","w9xpopen.exe", 'API-MS-Win-Core-ErrorHandling-L1-1-0.dll', 'API-MS-Win-Core-File-L1-1-0.dll', 'API-MS-Win-Core-IO-L1-1-0.dll', 'API-MS-Win-Core-LibraryLoader-L1-1-0.dll', 'API-MS-Win-Core-Handle-L1-1-0.dll', 'API-MS-Win-Core-Heap-L1-1-0.dll', 'API-MS-Win-Core-Interlocked-L1-1-0.dll', 'API-MS-Win-Core-Localization-L1-1-0.dll', 'API-MS-Win-Core-Memory-L1-1-0.dll', 'API-MS-Win-Core-Misc-L1-1-0.dll', 'API-MS-Win-Core-ProcessThreads-L1-1-0.dll', 'API-MS-Win-Core-Profile-L1-1-0.dll', 'API-MS-Win-Core-String-L1-1-0.dll', 'API-MS-Win-Core-Synch-L1-1-0.dll', 'API-MS-Win-Core-SysInfo-L1-1-0.dll', 'API-MS-Win-Core-ErrorHandling-L1-1-0.dll' ]
} } setup( options = options, zipfile = None , console = [target] )
|