2015-09-29 22:50:22 +08:00
|
|
|
# -*- mode: python -*-
|
2016-07-20 05:53:41 +08:00
|
|
|
import os
|
2015-09-29 22:50:22 +08:00
|
|
|
import platform
|
|
|
|
a = Analysis(['main.py'],
|
|
|
|
pathex=['.'],
|
2016-05-27 01:33:29 +08:00
|
|
|
hiddenimports=['_cffi_backend', 'queue'],
|
2015-09-29 22:50:22 +08:00
|
|
|
hookspath=None,
|
|
|
|
runtime_hooks=None)
|
|
|
|
|
|
|
|
if platform.system().find("Windows")>= 0:
|
|
|
|
a.datas = [i for i in a.datas if i[0].find('Include') < 0]
|
|
|
|
|
|
|
|
pyz = PYZ(a.pure)
|
|
|
|
exe = EXE(pyz,
|
|
|
|
a.scripts,
|
2016-07-20 05:53:41 +08:00
|
|
|
a.binaries + [('msvcr100.dll', os.environ['WINDIR'] + '\system32\msvcr100.dll', 'BINARY')],
|
2015-09-29 22:50:22 +08:00
|
|
|
a.zipfiles,
|
|
|
|
a.datas,
|
|
|
|
name='monkey.exe',
|
|
|
|
debug=False,
|
|
|
|
strip=None,
|
|
|
|
upx=True,
|
|
|
|
console=True , icon='monkey.ico')
|