URL
https://opencores.org/ocsvn/phr/phr/trunk
Subversion Repositories phr
[/] [phr/] [trunk/] [codigo/] [gui/] [windows/] [gui/] [setup.py] - Rev 406
Go to most recent revision | Compare with Previous | Blame | View Log
#!/usr/bin/python from distutils.core import setup import py2exe import glob 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": "phr-gui.py", "icon_resources": [(1, "grafica/phr-gui.ico")], #"other_resources": [(24,1,manifest)] } ], data_files=[ ("grafica", glob.glob('grafica/*.*')), ("ejemplos", glob.glob('ejemplos/*.*')), ("xc3sprog", glob.glob('xc3sprog/*.*')), ("redist", glob.glob('redist/*.*')), ] )
Go to most recent revision | Compare with Previous | Blame | View Log