-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsetup_win.py
37 lines (26 loc) · 897 Bytes
/
setup_win.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from cx_Freeze import setup, Executable
import os
# Extra files
include_files = []
# Including libs
includes = []
# Unnecessary libs
excludes = []
# Packages
packages = []
# Optimization level
optimize = 1
# If true, only errors and warning will be displayed when excuting cx_freez
silent = True
PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__))
os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6')
os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6')
target = Executable(
script = "gmg.py",
copyright= "Copyright © 2019 gmg",
)
setup(name = "Guide_Me_Glasses",
version = "0.1" ,
description = "Smart glasses" ,
options = {'build_exe': {'includes':includes,'excludes':excludes,'packages':packages,'include_files':include_files, 'optimize':1, 'silent':silent}},
executables = [target])