blob: bf2ca85bd9d703535d14bf8505d00de764c56cfc [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 +000010
Chris Liechtifbdd8a02015-08-09 02:37:45 +020011# this script is only useful for py2exe so just run that distutils command.
12# that allows to run it with a simple double click.
cliechti290999b2004-06-29 22:08:28 +000013sys.argv.append('py2exe')
14
Chris Liechtifbdd8a02015-08-09 02:37:45 +020015# get an icon from somewhere.. the python installation should have one:
cliechti290999b2004-06-29 22:08:28 +000016icon = os.path.join(os.path.dirname(sys.executable), 'py.ico')
17
18setup(
Chris Liechti43839142016-02-05 21:09:49 +010019 options={
20 'py2exe': {
21 'excludes': ['javax.comm'],
22 'optimize': 2,
23 'dist_dir': 'dist',
cliechti290999b2004-06-29 22:08:28 +000024 }
25 },
26
Chris Liechti3d3e71e2016-01-24 23:55:05 +010027 name="wxTerminal",
28 windows=[
cliechti290999b2004-06-29 22:08:28 +000029 {
30 'script': "wxTerminal.py",
31 'icon_resources': [(0x0004, icon)]
32 },
33 ],
Chris Liechti3d3e71e2016-01-24 23:55:05 +010034 zipfile="stuff.lib",
cliechti3453f122009-08-10 22:56:34 +000035
Chris Liechti3d3e71e2016-01-24 23:55:05 +010036 description="Simple serial terminal application",
37 version="0.1",
38 author="Chris Liechti",
39 author_email="cliechti@gmx.net",
40 url="https://github.com/pyserial/pyserial/",
cliechti290999b2004-06-29 22:08:28 +000041)