blob: 9e0add7ecd77f4790cf594c3ba746c9aea120cbe [file] [log] [blame]
cliechti290999b2004-06-29 22:08:28 +00001# This is a setup.py example script for the use with py2exe
Chris Liechtifbdd8a02015-08-09 02:37:45 +02002#
3# (C) 2001-2015 Chris Liechti <cliechti@gmx.net>
4#
5# SPDX-License-Identifier: BSD-3-Clause
6
cliechti290999b2004-06-29 22:08:28 +00007from distutils.core import setup
Chris Liechti4caf6a52015-08-04 01:07:45 +02008import os
9import sys
cliechti290999b2004-06-29 22:08:28 +000010import py2exe
cliechti290999b2004-06-29 22:08:28 +000011
Chris Liechtifbdd8a02015-08-09 02:37:45 +020012# this script is only useful for py2exe so just run that distutils command.
13# that allows to run it with a simple double click.
cliechti290999b2004-06-29 22:08:28 +000014sys.argv.append('py2exe')
15
Chris Liechtifbdd8a02015-08-09 02:37:45 +020016# get an icon from somewhere.. the python installation should have one:
cliechti290999b2004-06-29 22:08:28 +000017icon = os.path.join(os.path.dirname(sys.executable), 'py.ico')
18
19setup(
20 options = {'py2exe': {
21 'excludes': ['javax.comm'],
22 'optimize': 2,
23 'dist_dir': 'dist',
24 }
25 },
26
27 name = "wxTerminal",
28 windows = [
29 {
30 'script': "wxTerminal.py",
31 'icon_resources': [(0x0004, icon)]
32 },
33 ],
34 zipfile = "stuff.lib",
cliechti3453f122009-08-10 22:56:34 +000035
cliechti290999b2004-06-29 22:08:28 +000036 description = "Simple serial terminal application",
37 version = "0.1",
38 author = "Chris Liechti",
39 author_email = "cliechti@gmx.net",
Chris Liechti80e2ae22015-08-04 02:59:50 +020040 url = "https://github.com/pyserial/pyserial/",
cliechti290999b2004-06-29 22:08:28 +000041)