-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
25 lines (21 loc) · 711 Bytes
/
setup.py
File metadata and controls
25 lines (21 loc) · 711 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
from distutils.core import setup
import py2exe, sys, os
sys.argv.append('py2exe')
DATA=[('platforms',[
'C:\Python34\Lib\site-packages\PyQt5\plugins\platforms\qwindows.dll'
])]
for files in os.listdir(os.path.join(os.getcwd(),'UI')):
f1 = os.path.join(os.getcwd(),'UI', files)
if os.path.isfile(f1):
f2 = 'UI', [f1]
DATA.append(f2)
setup(
options = {'py2exe': {'compressed': True,"includes":["sip"]}},
windows = [{
'script': "main.py",
"icon_resources": [(1, os.path.join(os.getcwd(),"resources","converted_icon.ico"))],
"dest_base":"PokerStats",
}],
zipfile = None,
data_files = DATA,
)