-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (27 loc) · 800 Bytes
/
setup.py
File metadata and controls
30 lines (27 loc) · 800 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
26
27
28
29
30
from distutils.core import setup
import os
import py2exe
import matplotlib
opts = {
"py2exe": {
"dll_excludes": ["MSVCP90.dll"],
"includes": ["matplotlib.backends.backend_tkagg"],
'packages': ['werkzeug', 'email', 'jinja2.ext'],
}
}
data_files = []
data_files.extend(matplotlib.get_py2exe_datafiles())
for dir_image in ['./static', './templates']:
for root, dirs, files in os.walk(dir_image):
file_list = []
if files:
for filename in files:
file_list.append(os.path.join(root, filename))
if file_list:
data_files.append((root, file_list))
data_files.append(('', ['mm_anywhere.ini']))
print data_files
setup(console=['mm_anywhere.py'],
options=opts,
data_files=data_files
)