-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
54 lines (49 loc) · 1.25 KB
/
setup.py
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
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
'''setup.py
'''
import sys, os, imp
from distutils.core import setup
import py2exe
if not 'py2exe' in sys.argv:
sys.argv.insert(1, 'py2exe')
py2exe_options = {
'compressed': 1,
'optimize': 0,
'includes': [],
'excludes': [],
'dll_excludes': [],
'packages': [],
'bundle_files': 3}
def manifest(app_name):
return """<?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>%s</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
""" % (app_name)
setup(
options = {'py2exe': py2exe_options},
windows = [{
'script': 'wxReversePolishNotation.py',
'other_resources': [(24, 1, manifest('wxReversePolishNotation'))]}],
data_files = [],
zipfile = None)