old_contents: # 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__
      ],
  )
  
new_contents: # 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": {
          'dll_excludes': [],
          'includes': [
                  'serial.urlhandler.protocol_hwgrep', 'serial.urlhandler.protocol_rfc2217',
                  'serial.urlhandler.protocol_socket', 'serial.urlhandler.protocol_loop',],
          'dist_dir': 'bin',
          'excludes': ['serialjava', 'serialposix', 'serialcli'],
          'compressed': 1,
          }
      },
      console = [
          #~ "miniterm.py",
          serial.tools.miniterm.__file__
      ],
  )
  
subject: include url handlers