summaryrefslogtreecommitdiff
path: root/examples/setup-miniterm-py2exe.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/setup-miniterm-py2exe.py')
-rw-r--r--examples/setup-miniterm-py2exe.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/setup-miniterm-py2exe.py b/examples/setup-miniterm-py2exe.py
new file mode 100644
index 0000000..c98e4bd
--- /dev/null
+++ b/examples/setup-miniterm-py2exe.py
@@ -0,0 +1,27 @@
+# setup script for py2exe to create the miniterm.exe
+# $Id: setup-miniterm-py2exe.py,v 1.1 2005-09-21 19:51:19 cliechti Exp $
+
+from distutils.core import setup
+import glob, sys, py2exe, os
+
+sys.path.insert(0, '..')
+
+sys.argv.extend("py2exe --bundle 1".split())
+
+import serial.tools.miniterm
+
+setup(
+ name = 'miniterm',
+ zipfile = None,
+ options = {"py2exe":
+ {
+ 'dist_dir': 'bin',
+ 'excludes': ['serialjava', 'serialposix', 'serialcli'],
+ 'compressed': 1,
+ }
+ },
+ console = [
+ #~ "miniterm.py",
+ serial.tools.miniterm.__file__
+ ],
+)