importsysfromcx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need# fine tuning.buildOptions = dict(packages = [], excludes = [], include_files={"DcmStatistics.xsd" , "dcm2xml.exe" , "readme.txt" , "DcmStatisticsResult.xslt" })
executable ="DcmFileCompareTool.py"base ='Console'targetName ="dcmAnalyzer.exe"
executables = [Executable(executable, base=base, targetName=targetName)]
setup(name='dcmanalyzer',version ='1.0',description ='convert dcm file to xml, parse xml and create statistics result, arrange dcm file to folders of different companies.',options = dict(build_exe = buildOptions),executables = executables)
python setup.py buildpause
原文:http://blog.csdn.net/muzizongheng/article/details/27325887