forked from eugeni/openclass
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompile.py
executable file
·37 lines (33 loc) · 905 Bytes
/
compile.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
from distutils.core import setup
from distutils.filelist import findall
import py2exe
import glob
import os
DESTDIR="win_dist"
setup(
windows = [
{
"script": 'student.py',
"icon_resources": [(0, "iface/student.ico")]
},
{
"script": 'teacher.py',
"icon_resources": [(0, "iface/teacher.ico")]
}
],
options = {
'py2exe':
{
"includes": "pango,cairo,pangocairo,atk,gobject,gio",
"dist_dir": DESTDIR,
},
},
data_files = [
("iface", ["iface/machine.png", "iface/machine_off.png", "iface/openclass.png"]),
],
zipfile = None,
)
# cleanup
os.chdir(DESTDIR)
#os.system("rmdir /s /q tcl")
#os.system("del /s /q *tcl* *tkinter*")