Skip to content

Commit

Permalink
setup
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-eri committed Jul 7, 2015
1 parent 8d896e3 commit 73d399c
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions setup.py
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
)
]
)

0 comments on commit 73d399c

Please sign in to comment.