old_contents: from distutils.core import setup
  try:
      import py2exe
  except ImportError:
      have_py2exe = False
  else:
      have_py2exe = True
      
      
  setup_arguments = dict(
      name = 'haietmoba-reminder',
      version = '1.0b2',
      author = 'Sridhar Ratnakumar',
      author_email = 'srid@nearfar.org',
      url = 'http://github.com/srid/haietmoba-reminder',
      license = 'MIT',
      scripts = ['haietmoba-reminder.py'],
      data_files = [('data', ['data/icon.png', 'data/icon.ico'])],
      classifiers=[
          'Development Status :: 4 - Beta',
          'License :: OSI Approved :: MIT License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Education',
          'Topic :: Utilities',
          'Intended Audience :: End Users/Desktop',
      ]
  )
  
  
  py2exe_arguments = dict(
        windows=[{"script": 'haietmoba-reminder.py'}],
        options={'py2exe': {'includes': 'sip', 'skip_archive': True}})
  
  if have_py2exe:
      setup_arguments.update(py2exe_arguments)
      
      
  setup(**setup_arguments)
  
  
new_contents: import sys
  from distutils.core import setup
  try:
      import py2exe
  except ImportError:
      have_py2exe = False
  else:
      have_py2exe = True
      
      
  setup_arguments = dict(
      name = 'haietmoba-reminder',
      version = '1.0b2',
      author = 'Sridhar Ratnakumar',
      author_email = 'srid@nearfar.org',
      url = 'http://github.com/srid/haietmoba-reminder',
      license = 'MIT',
      scripts = ['haietmoba-reminder.py'],
      data_files = [('data', ['data/icon.png', 'data/icon.ico'])],
      classifiers=[
          'Development Status :: 4 - Beta',
          'License :: OSI Approved :: MIT License',
          'Operating System :: OS Independent',
          'Programming Language :: Python',
          'Topic :: Education',
          'Topic :: Utilities',
          'Intended Audience :: End Users/Desktop',
      ]
  )
  
  
  py2exe_arguments = dict(
      windows=[{"script": 'haietmoba-reminder.py'}],
      options={'py2exe': {
          'dll_excludes': ["MSVCP90.dll"],
          'includes': 'sip',
          'skip_archive': True,
          }
      }
  )
  
  if have_py2exe:
      setup_arguments.update(py2exe_arguments)
      
      
  setup(**setup_arguments)
  
subject: exclude MSVCP90.dll from py2exe step