-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
24 lines (20 loc) · 748 Bytes
/
setup.py
File metadata and controls
24 lines (20 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import sys
# import glob
import os
# import shutil
import hash_check
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
includefiles = ['hash_check.ui']
build_dir = os.path.abspath('../build')
build_exe_options = {"icon": "icons/logo.ico", 'include_files': includefiles, 'build_exe': build_dir}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup( name = "Hash Check",
version = hash_check.__version__,
description = "Hash Check",
options = {"build_exe": build_exe_options},
executables = [Executable("hash_check.py", base=base)])