URL
https://opencores.org/ocsvn/phr/phr/trunk
Subversion Repositories phr
[/] [phr/] [trunk/] [codigo/] [gui/] [windows/] [minimal python2.7.6/] [py2exe_wx/] [setup.py] - Rev 297
Go to most recent revision | Compare with Previous | Blame | View Log
#!/usr/bin/python from distutils.core import setup import py2exe manifest = """ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="0.64.1.0" processorArchitecture="x86" name="Controls" type="win32" /> <description>Your Application</description> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*" /> </dependentAssembly> </dependency> </assembly> """ """ installs manifest and icon into the .exe but icon is still needed as we open it for the window icon (not just the .exe) changelog and logo are included in dist """ setup( options = { "py2exe":{ "dll_excludes": ["MSVCP90.dll", "HID.DLL", "w9xpopen.exe"], } }, windows = [ { "script": "programa.py", # "icon_resources": [(1, "yourapplication.ico")], # "other_resources": [(24,1,manifest)] } ], # data_files=["yourapplication.ico"] )
Go to most recent revision | Compare with Previous | Blame | View Log