-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-py2exe.py
More file actions
38 lines (33 loc) · 804 Bytes
/
setup-py2exe.py
File metadata and controls
38 lines (33 loc) · 804 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
31
32
33
34
35
36
37
38
"""
Usage: setup-py2exe.py py2exe
"""
import sys
import os
from distutils.core import setup
import py2exe
sys.path.append('ageofwinds')
os.chdir('ageofwinds')
data_files = []
search_dir = os.path.join('assets')
for root, dirs, files in os.walk(search_dir):
for f in files:
p = os.path.join(root, f)
p = os.path.abspath(p)
df = root, [p]
data_files.append(df)
print root
print p
os.chdir('..')
# sys.exit(0)
setup(
windows=[{"script": "ageofwinds/__init__.py", "dest_base": "ageofwinds"}],
options={
"py2exe": {
"includes": ["PySide.QtCore", "PySide.QtGui"],
"dll_excludes": ["MSVCP90.dll"],
"dist_dir": "dist-py2exe",
# "bundle_files": 2
}
},
data_files=data_files
)