import sys, os
from cx_Freeze import setup, Executable

python_dir = r'C:\Users\darth\AppData\Local\Programs\Python\Python36'
os.environ['TCL_LIBRARY'] = python_dir + r'\tcl\tcl8.6'
os.environ['TK_LIBRARY'] = python_dir + r'\tcl\tk8.6'
includes = ["PyQt5.QtCore","PyQt5.QtGui","re","idna.idnadata","multiprocessing.pool",
"matplotlib.backends.backend_tkagg","matplotlib.legend","matplotlib.legend_handler",
"multiprocessing",'scipy.sparse.csgraph._validation','configparser',"tkinter","tkinter.filedialog"
#"tkinter._fix",
#python_dir + r'\DLLs\tcl86t.dll',
#(python_dir + r'\DLLs\tk86t.dll')
]



base = None
#if sys.platform == "win32":
#    base = "Win32GUI"

setup(  name = "no_name",
        version = "0.0.1",
        options = {"build_exe": {"includes": includes}},
        executables = [Executable("main_window.py", base=base)])
