cliechti | 290999b | 2004-06-29 22:08:28 +0000 | [diff] [blame] | 1 | # This is a setup.py example script for the use with py2exe |
| 2 | from distutils.core import setup |
| 3 | import py2exe |
| 4 | import sys, os |
| 5 | |
| 6 | #this script is only useful for py2exe so just run that distutils command. |
| 7 | #that allows to run it with a simple double click. |
| 8 | sys.argv.append('py2exe') |
| 9 | |
| 10 | #get an icon from somewhere.. the python installation should have one: |
| 11 | icon = os.path.join(os.path.dirname(sys.executable), 'py.ico') |
| 12 | |
| 13 | setup( |
| 14 | options = {'py2exe': { |
| 15 | 'excludes': ['javax.comm'], |
| 16 | 'optimize': 2, |
| 17 | 'dist_dir': 'dist', |
| 18 | } |
| 19 | }, |
| 20 | |
| 21 | name = "wxTerminal", |
| 22 | windows = [ |
| 23 | { |
| 24 | 'script': "wxTerminal.py", |
| 25 | 'icon_resources': [(0x0004, icon)] |
| 26 | }, |
| 27 | ], |
| 28 | zipfile = "stuff.lib", |
cliechti | 3453f12 | 2009-08-10 22:56:34 +0000 | [diff] [blame^] | 29 | |
cliechti | 290999b | 2004-06-29 22:08:28 +0000 | [diff] [blame] | 30 | description = "Simple serial terminal application", |
| 31 | version = "0.1", |
| 32 | author = "Chris Liechti", |
| 33 | author_email = "cliechti@gmx.net", |
| 34 | url = "http://pyserial.sf.net", |
| 35 | ) |