blob: 018515bb61b47d44f52126e8b146e4f75102c44e [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
Chris Liechti4caf6a52015-08-04 01:07:45 +02003import os
4import sys
cliechti290999b2004-06-29 22:08:28 +00005import py2exe
cliechti290999b2004-06-29 22:08:28 +00006
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.
9sys.argv.append('py2exe')
10
11#get an icon from somewhere.. the python installation should have one:
12icon = os.path.join(os.path.dirname(sys.executable), 'py.ico')
13
14setup(
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",
cliechti3453f122009-08-10 22:56:34 +000030
cliechti290999b2004-06-29 22:08:28 +000031 description = "Simple serial terminal application",
32 version = "0.1",
33 author = "Chris Liechti",
34 author_email = "cliechti@gmx.net",
Chris Liechti80e2ae22015-08-04 02:59:50 +020035 url = "https://github.com/pyserial/pyserial/",
cliechti290999b2004-06-29 22:08:28 +000036)