From ad48ebd4920d4f9c37cc48da1a7f8a9aede1b5fa Mon Sep 17 00:00:00 2001 From: jwansek Date: Thu, 12 Apr 2018 15:03:22 +0100 Subject: added setup script for cx_Freeze --- setup.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 setup.py (limited to 'setup.py') diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c563f10 --- /dev/null +++ b/setup.py @@ -0,0 +1,34 @@ +from cx_Freeze import setup, Executable +import os + +os.environ["TCL_LIBRARY"] = r"C:\Program Files (x86)\Python36_64\tcl\tcl8.6" +os.environ["TK_LIBRARY"] = r"C:\Program Files (x86)\Python36_64\tcl\tk8.6" + +packages = [ + "tkinter", + ] + +include_files = [ + "Assets\\", + "LICENSE.txt", + "on_install_setup.exe", + "EEHPH2_app.py", + r"C:\Program Files (x86)\Python36_64\DLLs\tcl86t.dll", + r"C:\Program Files (x86)\Python36_64\DLLs\tk86t.dll", + ] + +exec_ = Executable( + script = "EEHPH2.py", + base = "Win32GUI", + icon = os.path.join("Assets", "icon.ico") + ) + +setup( + name = "EEHPH Photo Viewer v2", + options = {"build_exe": {"packages": packages, "include_files": include_files}}, + version = "2.0.1", + description = "EEHPH2 by AE computer vision", + author = "Edward Attenborough", + executables = [exec_] +) + -- cgit v1.2.3