Created
October 23, 2016 09:44
-
-
Save CountChu/c07cff7c1db062b24463a60a35eebe1e to your computer and use it in GitHub Desktop.
Avoid cx_Freeze generating Library.zip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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