cx_freeze build includes all the modules installed on my machine, so freezing the assembly becomes huge. How to disable autodetection? I just want to create a small PyQt application:
import sys from cx_Freeze import setup, Executable path = sys.path + ["app"] includes = ["app.core", "app.utils"] excludes = ["tcl"] build_exe_options = { "path": path, "icon": "resources\icons\clock.ico"} base = None if sys.platform == "win32": base = "Win32GUI" setup( name = "app", version = "1.1", description = "My Application", options = {"build_exe": build_exe_options}, executables = [Executable("app.py", base=base, targetName="app.exe", shortcutName="Application", shortcutDir="DesktopFolder")])
I also have my custom modules, each of which has a utils submodule, so cx_freeze is putting the wrong module.
How can I install a strict list of modules that I need?
source share