old_contents: #!/usr/bin/env python
  """Wrapper to run setup.py using setuptools."""
  
  import sys
  
  # now, import setuptools and call the actual setup
  import setuptools
  execfile('setup.py')
  
  # clean up the junk left around by setuptools
  if "develop" not in sys.argv:
      os.system('rm -rf ipython.egg-info build')
  
new_contents: #!/usr/bin/env python
  """Wrapper to run setup.py using setuptools."""
  
  import os
  import sys
  
  # now, import setuptools and call the actual setup
  import setuptools
  execfile('setup.py')
  
  # clean up the junk left around by setuptools
  if "develop" not in sys.argv:
      os.unlink('ipython.egg-info')
  
subject: Make setupegg.py work on Windows.