diff options
| author | jwansek <eddie.atten.ea29@gmail.com> | 2018-04-12 15:03:22 +0100 |
|---|---|---|
| committer | jwansek <eddie.atten.ea29@gmail.com> | 2018-04-12 15:03:22 +0100 |
| commit | ad48ebd4920d4f9c37cc48da1a7f8a9aede1b5fa (patch) | |
| tree | a9ba6c5f450c0a6ca377d5086bf751cd21dd7dee /setup.py | |
| parent | 4927409579cc7ccb60c7581faeefca28425dbe12 (diff) | |
| download | eehph2-ad48ebd4920d4f9c37cc48da1a7f8a9aede1b5fa.tar.gz eehph2-ad48ebd4920d4f9c37cc48da1a7f8a9aede1b5fa.zip | |
added setup script for cx_Freeze
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 34 |
1 files changed, 34 insertions, 0 deletions
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_] +) + |
