Skip to content

Instantly share code, notes, and snippets.

@CountChu
Created October 23, 2016 09:44
Show Gist options
  • Save CountChu/c07cff7c1db062b24463a60a35eebe1e to your computer and use it in GitHub Desktop.
Save CountChu/c07cff7c1db062b24463a60a35eebe1e to your computer and use it in GitHub Desktop.
Avoid cx_Freeze generating Library.zip
import sys
import os
from cx_Freeze import setup, Executable
Exe1 = Executable (
script=r"MyApp\MyApp.py",
base=None,
appendScriptToExe = True,
appendScriptToLibrary = False,
)
includes = []
excludes = []
packages = []
path = sys.path
setup (
name = "MyApp",
version = "0.1",
description = MyApp,
executables = [Exe1],
options = {
"build_exe": {
"includes": includes,
"excludes": excludes,
"packages": packages,
"path": path,
"create_shared_zip": False,
# don't generate Library.zip
"append_script_to_exe": True,
# don't generate MyApp.zip file.
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment