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