-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (47 loc) · 1.42 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
50
51
52
53
54
55
56
57
58
import os
import site
import sys
import glob
from cx_Freeze import setup, Executable
siteDir = site.getsitepackages()[1]
includeDllPath = os.path.join(siteDir, "gnome")
#missingDll = glob.glob(includeDllPath + "\\" + '*.dll')
missingDll = [dll.strip() for dll in open("dlls.txt").readlines()]
includeFiles = [("mssh.glade","mssh.glade")]
for DLL in missingDll:
includeFiles.append((os.path.join(includeDllPath, DLL), DLL))
# includeFiles.append(DLL)
# You can import all Gtk Runtime data from gtk folder
#gtkLibs= ['etc','lib','share']
# You can import only important Gtk Runtime data from gtk folder
gtkLibs = ['lib\\gdk-pixbuf-2.0',
'lib\\girepository-1.0',
'share\\glib-2.0',
'lib\\gtk-3.0',
'share\\icons',
'share\\locale\\en',
'share\\locale\\ru',
'etc\\fonts'
]
for lib in gtkLibs:
includeFiles.append((os.path.join(includeDllPath, lib), lib))
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name = "mssh",
version = "1.0",
description = "Multi Mikrotik SSH executor",
options = {'build_exe' : {
'compressed': True,
'includes': ["gi"],
'excludes': ['wx', 'email', 'pydoc_data', 'curses'],
'packages': ["gi"],
'include_files': includeFiles
}},
executables = [
Executable("mssh.py",
base=base
)
]
)