Debian Codegraph @

examples/setup-wxTerminal-py2exe.py

raw
1 # This is a setup.py example script for the use with py2exe
2 #
3 # (C) 2001-2015 Chris Liechti <[email protected]>
4 #
5 # SPDX-License-Identifier: BSD-3-Clause
6
7 from distutils.core import setup
8 import os
9 import sys
10
11 # this script is only useful for py2exe so just run that distutils command.
12 # that allows to run it with a simple double click.
13 sys.argv.append('py2exe')
14
15 # get an icon from somewhere.. the python installation should have one:
16 icon = os.path.join(os.path.dirname(sys.executable), 'py.ico')
17
18 setup(
19 options={
20 '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",
35
36 description="Simple serial terminal application",
37 version="0.1",
38 author="Chris Liechti",
39 author_email="[email protected]",
40 url="https://github.com/pyserial/pyserial/",
41 )