cmiN

cx_Freeze

Jan 20th, 2012
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.75 KB | None | 0 0
  1. from cx_Freeze import setup, Executable
  2.  
  3. executables = [
  4.     Executable(
  5.         script="source.py",
  6.         initScript=None,
  7.         base='Console', # Win32GUI
  8.         compress=True,
  9.         appendScriptToExe=True,
  10.         appendScriptToLibrary=False,
  11.         icon=None,
  12.         copyDependentFiles=True
  13.     )
  14. ]
  15.  
  16. setup(
  17.     version="1.0",
  18.     description="Some description.",
  19.     author="Me",
  20.     name="Soft",
  21.     options=
  22.     {
  23.         "build_exe":
  24.         {
  25.             "optimize": 2,
  26.             "compressed": True,
  27.             "create_shared_zip": False,
  28.             "include_in_shared_zip": False,
  29.             "append_script_to_exe": True,
  30.             "copy_dependent_files": True
  31.         }
  32.     },
  33.     executables=executables
  34. )
Add Comment
Please, Sign In to add comment