root/trunk/win32/setup.manifest.py

Revision 15, 1.6 kB (checked in by mjoc, 1 year ago)

Atnaujinti vertimai. Pridėti nauji copyright'ai. Pakeista konfigūracija.

Line 
1 # Copy compile.bat and setup.py to root directory and run compile.bat
2
3 from distutils.core import setup
4 import py2exe
5 import sys
6 import glob
7
8 # The manifest will be inserted as resource into opendict.exe.  This
9 # gives the controls the Windows XP appearance (if run on XP ;-)
10 #
11 # Another option would be to store if in a file named
12 # opendict.exe.manifest, and probably copy it with the data_files
13 # option.
14 #
15 manifest_template = '''
16 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
17 <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
18 <assemblyIdentity
19     version="5.0.0.0"
20     processorArchitecture="x86"
21     name="%(prog)s"
22     type="win32"
23 />
24 <description>%(prog)s Program</description>
25 <dependency>
26     <dependentAssembly>
27         <assemblyIdentity
28             type="win32"
29             name="Microsoft.Windows.Common-Controls"
30             version="6.0.0.0"
31             processorArchitecture="X86"
32             publicKeyToken="6595b64144ccf1df"
33             language="*"
34         />
35     </dependentAssembly>
36 </dependency>
37 </assembly>
38 '''
39
40 RT_MANIFEST = 24
41
42 ################################################################
43 # arguments for the setup() call
44
45 opendict = dict(
46     script = "opendict.py",
47     other_resources = [(RT_MANIFEST, 1, manifest_template % dict(prog="OpenDict"))],
48     )
49
50 options = {"py2exe": {"compressed": 1,
51                       "optimize": 2}}
52
53
54 setup(
55     name="OpenDict",
56     version="0.6.3",
57     options = options,
58     zipfile = None,
59     package_dir = {"": "lib"},
60     windows = [opendict],
61     data_files=[("pixmaps", glob.glob("pixmaps/\\*.png"))],
62     )
Note: See TracBrowser for help on using the browser.