Cheng Tang | eac1085 | 2013-06-25 16:43:32 +0800 | [diff] [blame^] | 1 | # -*- coding: utf-8 -*- |
| 2 | ''' |
| 3 | Created on 2012-4-20 |
| 4 | |
| 5 | @author: cheng.tang |
| 6 | ''' |
| 7 | |
| 8 | from cx_Freeze import setup, Executable |
| 9 | from tcutils import disttools |
| 10 | from v2convert import VERSION |
| 11 | |
| 12 | |
| 13 | include_files = ['cvtcfg.ini', u'convert-example.json'] |
| 14 | |
| 15 | buildOptions = {"includes": [], |
| 16 | "include_files": include_files, |
| 17 | "create_shared_zip": False |
| 18 | } |
| 19 | |
| 20 | setup(name="Supwisdom Ykt V2 to V4", |
| 21 | version=VERSION, |
| 22 | description=u"一卡通历史数据迁移", |
| 23 | options={"build_exe": buildOptions}, |
| 24 | executables=[Executable('v2convert.py', |
| 25 | targetName="cvt2to4.exe", |
| 26 | appendScriptToExe=True, |
| 27 | appendScriptToLibrary=False)]) |
| 28 | |
| 29 | |
| 30 | disttools.make_dist('cvt2to4', VERSION) |