Created
November 27, 2013 13:05
-
-
Save samtayuk/7675317 to your computer and use it in GitHub Desktop.
My setup.py script for cx-freeze
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
#!/usr/bin/env python | |
import sys | |
import glob | |
from cx_Freeze import setup, Executable, build_exe | |
###### VERSION ####### | |
version = '1.0.3' | |
###################### | |
base = None | |
includeFiles = [['data/ui','data/ui']] | |
if sys.platform == "win32": | |
base = "Win32GUI" | |
includeFiles.append(["data/gtktheme/Roxy-blue","share/themes/Roxy-blue"]) | |
includeFiles.append(["data/gtktheme/gtkrc",'etc/gtk-2.0/gtkrc']) | |
includeFiles.append(["data/gtktheme/engines",'lib/gtk-2.0/2.10.0/engines']) | |
exe = [Executable("bin/entrypoint-manager", | |
base=base, | |
namespacePackages=['entrypoint'], | |
compress=True, | |
packages=['entrypoint.common', 'entrypoint.common.db', 'entrypoint.manager', 'MySQLdb'], | |
shortcutName="EntryPoint Manager", | |
shortcutDir="ProgramMenuFolder", | |
icon="data/ui/entrypoint-manager.ico", | |
copyDependentFiles=False, | |
appendScriptToExe=True),] | |
build_exe_options = {"excludes": ["Tkinter", "Tk","Tcl"], | |
"include_files": includeFiles, | |
"namespace_packages": ["entrypoint"], | |
"packages": ['entrypoint.common', 'entrypoint.common.db', 'entrypoint.manager', 'reportlab', 'MySQLdb'], | |
"create_shared_zip": True, | |
"include_msvcr": True, | |
"optimize": 2, | |
} | |
setup( | |
name = "EntryPoint-Manager", | |
version = version, | |
description = "Visitor signing in system for schools", | |
author = "Samuel Taylor", | |
author_email = "samtaylor.uk@gmail.com", | |
url = "http://entrypoint.org.uk", | |
scripts = ["bin/entrypoint-manager"], | |
packages = ['entrypoint', 'entrypoint.common', 'entrypoint.common.db', 'entrypoint.manager'], | |
data_files = [('data/ui',glob.glob('data/ui/*'))], | |
options = {"build_exe": build_exe_options, "bdist_msi": {"upgrade_code": "E49F5FF4-2FE3-4903-8078-1F111C68F3A5"}}, | |
executables = exe, | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment