old_contents: #!/usr/bin/env python
  #
  # Michael McKerns
  # mmckerns@caltech.edu
  
  # check if easy_install is available
  try:
  #   import __force_distutils__ #XXX: uncomment to force use of distutills
      from setuptools import setup
      has_setuptools = True
  except ImportError:
      from distutils.core import setup
      has_setuptools = False
  
  # build the 'setup' call
  setup_code = """
  setup(name='dill',
        version='0.1a1',
        description='a full python state pickler',
        author = 'Mike McKerns',
        maintainer = 'Mike McKerns',
        maintainer_email = 'mmckerns@caltech.edu',
        license = 'BSD',
        platforms = ['any'],
        url = 'http://www.cacr.caltech.edu/~mmckerns',
        classifiers = ('Intended Audience :: Developers',
                       'Programming Language :: Python',
                       'Topic :: Physics Programming'),
  
        packages = ['dill'],
        package_dir = {'dill':'dill'},
  """
  
  # add dependencies
  ctypes_version = '>=1.0.1'
  import sys
  if has_setuptools and hex(sys.hexversion) < '0x20500f0':
      setup_code += """
          install_requires = ('ctypes%s'),
  """ % ctypes_version
  
  # close 'setup' call
  setup_code += """    
        zip_safe=True,
        scripts=[])
  """
  
  # exec the 'setup' code
  exec setup_code
  
  # if dependencies are missing, print a warning
  try:
      import ctypes
  except ImportError:
      print "\n***********************************************************"
      print "WARNING: One of the following dependencies is unresolved:"
      print "    ctypes %s" % ctypes_version
      print "***********************************************************\n"
  
  
  if __name__=='__main__':
      pass
  
  # end of file
  
new_contents: #!/usr/bin/env python
  #
  # Michael McKerns
  # mmckerns@caltech.edu
  
  # check if easy_install is available
  try:
  #   import __force_distutils__ #XXX: uncomment to force use of distutills
      from setuptools import setup
      has_setuptools = True
  except ImportError:
      from distutils.core import setup
      has_setuptools = False
  
  # build the 'setup' call
  setup_code = """
  setup(name='dill',
        version='0.1a1',
        description='a full python state pickler',
        author = 'Mike McKerns',
        maintainer = 'Mike McKerns',
        maintainer_email = 'mmckerns@caltech.edu',
        license = 'BSD',
        platforms = ['any'],
        url = 'http://www.cacr.caltech.edu/~mmckerns',
        classifiers = ('Intended Audience :: Developers',
                       'Programming Language :: Python',
                       'Topic :: Physics Programming'),
  
        packages = ['dill'],
        package_dir = {'dill':'dill'},
  """
  
  # add dependencies
  ctypes_version = '>=1.0.1'
  import sys
  if has_setuptools and hex(sys.hexversion) < '0x20500f0':
      setup_code += """
          install_requires = ['ctypes%s'],
  """ % (ctypes_version)
  
  # close 'setup' call
  setup_code += """    
        zip_safe=True,
        scripts=[])
  """
  
  # exec the 'setup' code
  exec setup_code
  
  # if dependencies are missing, print a warning
  try:
      import ctypes
  except ImportError:
      print "\n***********************************************************"
      print "WARNING: One of the following dependencies is unresolved:"
      print "    ctypes %s" % ctypes_version
      print "***********************************************************\n"
  
  
  if __name__=='__main__':
      pass
  
  # end of file
  
subject: support for 2.4 is partial -- appropriate ctypes versions are not available