-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (42 loc) · 1.44 KB
/
setup.py
File metadata and controls
53 lines (42 loc) · 1.44 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
"""
utiliser : python setup.py build pour compiler.
"""
import os
import sys
import PyQt4
import PyQt4.uic
from cx_Freeze import setup, Executable
base = None
if sys.platform == "win32":
base = "Win32GUI"
importationCode=[]
dependances = ["cours/","qcm/","qcmrm/","toeic/","users/", "dep"]
icone = [r"dep/img/1-48.ico"]
#QWEB
includefiles = ["res_rc.py","resUsr_rc.py","resPref_rc.py","resLevel_rc.py",(os.path.join(os.path.dirname(PyQt4.uic.__file__),
"widget-plugins"), "PyQt4.uic.widget-plugins")]+importationCode+dependances+icone
#QWEB!
includes = ["PyQt4.QtNetwork"]
excludes = []
packages = ["encodings",
"OpenGL",
"OpenGL.arrays" # or just this one
]
targetDir = "./build/"
setup(
name = "Assimilation Learning Tool",
author = "Adrien Vernotte",
version = "0.6.3",
description = "Outil d'entrainement au TOEIC - LGPL v2.1",
executables = [Executable("Assimilator.py",
base = base,
# shortcutName="LearningTool",
# shortcutDir="DesktopFolder",
# targetDir=targetDir,
icon = icone[0]
)],
options = {'build_exe': {'excludes':excludes,"compressed":True,
'packages':packages,'include_files':includefiles,
"includes":includes}
}
)