-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
39 lines (31 loc) · 837 Bytes
/
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
import py2exe
from distutils.core import setup
import os
def all_dir(path, dest):
dataFiles = []
for root, dirs, files in os.walk(path):
sampleList = []
if files:
for filename in files:
sampleList.append(root + "/" + filename)
if sampleList:
dataFiles.append((root.replace(path, dest), sampleList))
return dataFiles
data_files = []
data_files.extend(all_dir("./widgets", "./widgets"))
options = {
'py2exe': {
'compressed': True,
'optimize': 2,
'bundle_files': 1,
'dll_excludes': [
'MSVCP90.dll', "mswsock.dll", "powrprof.dll",
],
'includes': ['PySide.QtXml', 'pyHook']
}
}
setup(
data_files=data_files,
windows=[{'script': 'pydiablometer.py'}],
options=options
)