syncplay/buildPy2exe.py

38 lines
1.1 KiB
Python
Raw Normal View History

2012-10-12 16:37:12 +00:00
#!/usr/bin/env python
#coding:utf8
from setuptools import setup
import py2exe #@UnusedImport
from setuptools import find_packages
import syncplay
2012-12-24 18:15:32 +00:00
import sys
2012-10-12 16:37:12 +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',
packages=find_packages(exclude=['venv']),
install_requires=['Twisted>=11.1'],
2012-10-12 16:37:12 +00:00
)
info = dict(
common_info,
2012-10-15 18:33:24 +00:00
console=[{"script":"syncplayClient.py", "icon_resources":[(1, "resources\\icon.ico")]}, 'syncplayServer.py'],
options={'py2exe': {
2012-10-12 16:37:12 +00:00
'includes': 'cairo, pango, pangocairo, atk, gobject',
2012-12-26 16:03:57 +00:00
'excludes': '_ssl, doctest, pdb, unittest, difflib, win32clipboard, win32event, win32file, win32pdh, win32security, win32trace, win32ui, winxpgui, win32pipe, win32process',
'dll_excludes': 'msvcr71.dll',
2012-10-12 16:37:12 +00:00
'optimize': 2,
'compressed': 1
}
},
)
setup(**info)