usr bin python from distutils core import setup import py2exe manifest

 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
#!/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>File Parser</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
'''
setup(
options = {'py2exe': {
'compressed': 1,
'optimize': 2,
'bundle_files': 1,
}
},
zipfile = 'resources.zip',
windows = [{
'script': 'app.py',
'icon_resources': [(1, 'icon.gif')],
'other_resources': [(24, 1, manifest)]
}],
data_files = ['icon.gif', 'app.xrc']
)