2012-10-12 16:37:12 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
#coding:utf8
|
2012-12-30 13:07:07 +00:00
|
|
|
from distutils.core import setup
|
|
|
|
from py2exe.build_exe import py2exe
|
2012-10-12 16:37:12 +00:00
|
|
|
|
|
|
|
import syncplay
|
2012-12-24 18:15:32 +00:00
|
|
|
import sys
|
2012-10-12 16:37:12 +00:00
|
|
|
|
2012-12-24 14:07:03 +00:00
|
|
|
sys.argv.extend(['py2exe', '-p win32com ', '-i twisted.web.resource'])
|
2012-10-12 16:37:12 +00:00
|
|
|
common_info = dict(
|
2012-10-15 18:33:24 +00:00
|
|
|
name='Syncplay',
|
|
|
|
version=syncplay.version,
|
2012-12-26 16:03:57 +00:00
|
|
|
author='Uriziel',
|
|
|
|
author_email='urizieli@gmail.com',
|
2012-10-15 18:33:24 +00:00
|
|
|
description='Syncplay',
|
2012-10-12 16:37:12 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
info = dict(
|
|
|
|
common_info,
|
2012-12-30 13:07:07 +00:00
|
|
|
console=[{"script":"syncplayClient.py", "icon_resources":[(1, "resources\\icon.ico")], 'dest_base': "Syncplay"}, 'syncplayServer.py'],
|
2012-10-15 18:33:24 +00:00
|
|
|
options={'py2exe': {
|
2012-12-30 13:07:07 +00:00
|
|
|
'dist_dir': "syncplay v%s" % syncplay.version,
|
|
|
|
'includes': 'cairo, pango, pangocairo, atk, gobject, twisted',
|
|
|
|
'excludes': 'venv, _ssl, doctest, pdb, unittest, difflib, win32clipboard, win32event, win32file, win32pdh, win32security, win32trace, win32ui, winxpgui, win32pipe, win32process',
|
2012-12-26 16:03:57 +00:00
|
|
|
'dll_excludes': 'msvcr71.dll',
|
2012-10-12 16:37:12 +00:00
|
|
|
'optimize': 2,
|
|
|
|
'compressed': 1
|
|
|
|
}
|
2012-12-30 13:07:07 +00:00
|
|
|
},
|
|
|
|
zipfile = "lib/libsync",
|
2013-01-02 11:51:10 +00:00
|
|
|
|
2012-10-12 16:37:12 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
setup(**info)
|
|
|
|
|