setup.py 379 B

1234567891011121314151617181920
  1. from cx_Freeze import setup, Executable
  2. script_path = "main.py"
  3. build_exe_options = {
  4. "includes": [],
  5. "excludes": ['tkinter'],
  6. "packages": [],
  7. 'include_files': [],
  8. }
  9. setup(
  10. name="demo",
  11. version="1.0.1",
  12. description="demo desc",
  13. options={
  14. "build_exe": build_exe_options
  15. },
  16. executables=[Executable(script_path, base="Win32GUI")]
  17. )