This repository has been archived by the owner on Feb 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
49 lines (46 loc) · 1.7 KB
/
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
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/python
# -*- coding: utf-8 -*-
method = "cxfreeze" # "py2exe"
if method == "py2exe":
print "py2exe"
from distutils.core import setup
import py2exe
setup(
windows=[{"script" : "main.py", "icon_resources": [(0, "ico.ico")]}],
options={
"py2exe" : {
"compressed": 2,
"optimize": 2,
"dll_excludes": ['tcl85.dll', 'tk85.dll'],
"includes" : ["sip", "xml.etree.cElementTree", "resource_rc"],
"excludes" : ['_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger', 'pywin.debugger.dbgcon', 'pywin.dialogs',"Tkconstants","Tkinter","tcl"],
}
},
)
elif method == "cxfreeze":
print "cxfreeze"
from cx_Freeze import setup, Executable, Freezer
exe = Executable(
script="main.py",
targetName="telesk.exe"
)
freezer = Freezer([exe],
base = "Win32GUI",
icon = "images\\telesk_default.ico",
#compress = True,
path = None,
createLibraryZip = False,
#copyDependentFiles =True,
appendScriptToExe = True,
#appendScriptToLibrary = True,
targetDir = 'dist',
#includes = ["sqlalchemy.dialects.mysql", "PyQt4.QtNetwork"],
excludes = ['_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger', 'pywin.debugger.dbgcon', 'pywin.dialogs',"Tkconstants","Tkinter","tcl"]
)
freezer.Freeze()
"""setup(
name = "Telesk",
version = "0.2",
description = "Telesk Softphone by SKAT LTD",
executables = [exe]
)"""