1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
from cx_Freeze import setup, Executable as cxExecutable
import platform
if platform.system() == 'Windows':
# base must be set on Windows to either console or gui app
# testpubsub is currently a console application
# base = 'Win32GUI'
base = 'Console'
else:
base = None
opts = { 'compressed' : True,
'create_shared_zip' : False,
}
WIN_Target = cxExecutable(
script='testpubsub.py',
base=base,
targetName='testpubsub.exe',
compress=True,
appendScriptToLibrary=False,
appendScriptToExe=True
)
setup(
name='TestPubSub',
description="Script to test pubsub for packaging with cxfreeze",
version='0.1',
options={'build_exe' : opts},
executables=[WIN_Target]
)
|