Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
targetName = "%s.exe" % base_name,
compress = True,
copyDependentFiles = True,
appendScriptToExe = False,
appendScriptToLibrary = True,
base = base))
def add_console_exe(script, icon, base_name):
add_exe(script, icon, base_name)
def add_gui_exe(script, icon, base_name):
add_exe(script, icon, base_name, base="Win32GUI")
#END OF cx_freeze SECTION
else:
import py2exe #@UnresolvedImport
assert py2exe is not None
EXCLUDED_DLLS = list(py2exe.build_exe.EXCLUDED_DLLS) + ["nvcuda.dll"]
py2exe.build_exe.EXCLUDED_DLLS = EXCLUDED_DLLS
py2exe_options = {
"skip_archive" : False,
"optimize" : 0, #WARNING: do not change - causes crashes
"unbuffered" : True,
"compressed" : True,
"skip_archive" : False,
"packages" : packages,
"includes" : external_includes,
"excludes" : excludes,
"dll_excludes" : ["w9xpopen.exe", "tcl85.dll", "tk85.dll"],
}
setup_options["options"] = {"py2exe" : py2exe_options}
windows = []
setup_options["windows"] = windows
console = []
compress = True,
copyDependentFiles = True,
appendScriptToExe = False,
appendScriptToLibrary = True,
base = base))
def add_console_exe(script, icon, base_name):
add_exe(script, icon, base_name)
def add_gui_exe(script, icon, base_name):
add_exe(script, icon, base_name, base="Win32GUI")
#END OF cx_freeze SECTION
else:
import py2exe #@UnresolvedImport
assert py2exe is not None
EXCLUDED_DLLS = list(py2exe.build_exe.EXCLUDED_DLLS) + ["nvcuda.dll"]
py2exe.build_exe.EXCLUDED_DLLS = EXCLUDED_DLLS
py2exe_options = {
"skip_archive" : False,
"optimize" : 0, #WARNING: do not change - causes crashes
"unbuffered" : True,
"compressed" : True,
"skip_archive" : False,
"packages" : packages,
"includes" : external_includes,
"excludes" : excludes,
"dll_excludes" : ["w9xpopen.exe", "tcl85.dll", "tk85.dll"],
}
setup_options["options"] = {"py2exe" : py2exe_options}
windows = []
setup_options["windows"] = windows
console = []
setup_options["console"] = console