-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·25 lines (22 loc) · 816 Bytes
/
setup.py
File metadata and controls
executable file
·25 lines (22 loc) · 816 Bytes
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
#!/cygdrive/c/Python27/python.exe
from distutils.core import setup
import py2exe
import resource
resource.gen_reslist_py()
py2exe_options = dict(
includes=['_reslist'],
packages=["encodings", "email", "BaseHTTPServer", "httplib", "Cookie"],
excludes=[#'_ssl', # Exclude _ssl
'pyreadline', 'doctest', 'locale',
'pickle', 'calendar'], # Exclude standard library
dll_excludes=['msvcr71.dll', "w9xpopen.exe", 'mswsock.dll', 'powrprof.dll'], # Exclude msvcr71
compressed=True, # Compress library.zip
bundle_files=1,
dist_dir="bin",
)
setup(windows=[{
'script': "mdview.py",
'other_resources': resource.py2exe_list()
}],
zipfile=None,
options={'py2exe': py2exe_options},)