-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
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') | ||
|
||
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'] | ||
|
||
|
||
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 | ||
) | ||
] | ||
) |