blob: 21b9c94ba2fe382c9213758c930b0f2abe7f2736 [file] [log] [blame]
cliechti290999b2004-06-29 22:08:28 +00001# This is a setup.py example script for the use with py2exe
2from distutils.core import setup
3import py2exe
4import 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.
8sys.argv.append('py2exe')
9
10#get an icon from somewhere.. the python installation should have one:
11icon = os.path.join(os.path.dirname(sys.executable), 'py.ico')
12
13setup(
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",
cliechti3453f122009-08-10 22:56:34 +000029
cliechti290999b2004-06-29 22:08:28 +000030 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)