from cx_Freeze import setup, Executable setup( name="MonitorInputSwitcher", version="1.0", description="Monitors keyboard connection and switches input", options={ "build_exe": { "packages": ["wmi", "monitorcontrol", "win32com", "time"], "excludes": ["tkinter"], "include_files": [], # add DLLs or files here if needed } }, executables=[Executable("main.py")] )