old_contents: try:
      from setuptools import setup
  except ImportError:
      from distutils.core import setup
  
  setup(
      name='sciunit',
      version='0.1.5.8',
      author='Rick Gerkin',
      author_email='rgerkin@asu.edu',
      packages=['sciunit', 
                'sciunit.tests'],
      url='http://sciunit.scidash.org',
      license='MIT',
      description='A test-driven framework for formally validating scientific models against data.',
      long_description="",
      install_requires=['cypy>=0.2',
                        'quantities==999',
                        'pandas>=0.18',
                        'ipython>=5.1',
                        'matplotlib',
                        'bs4',
                        'lxml',
                        'nbconvert',
                        'ipykernel',
                        'nbformat',],
      dependency_links = ['git+https://github.com/scidash/python-quantities.git@master#egg=quantities-999'],
      entry_points={
          'console_scripts': [
              'sciunit = sciunit.__main__:main'
              ]
          }
      )
  
  
  
  
new_contents: import sys
  
  try:
      from setuptools import setup
  except ImportError:
      from distutils.core import setup
  
  setup(
      name='sciunit',
      version='0.1.5.8',
      author='Rick Gerkin',
      author_email='rgerkin@asu.edu',
      packages=['sciunit', 
                'sciunit.tests'],
      url='http://sciunit.scidash.org',
      license='MIT',
      description='A test-driven framework for formally validating scientific models against data.',
      long_description="",
      
      # IPython 6.0+ does not support Python 2.6, 2.7, 3.0, 3.1, or 3.2
      if sys.version_info < (3,3):
          ipython = "ipython>=5.1,<6.0"
      else:
          ipython = "ipython>=5.1"
      
      install_requires=['cypy>=0.2',
                        'quantities==999',
                        'pandas>=0.18',
                        ipython,
                        'matplotlib',
                        'bs4',
                        'lxml',
                        'nbconvert',
                        'ipykernel',
                        'nbformat',],
      dependency_links = ['git+https://github.com/scidash/python-quantities.git@master#egg=quantities-999'],
      entry_points={
          'console_scripts': [
              'sciunit = sciunit.__main__:main'
              ]
          }
      )
  
  
  
  
subject: Update setup.py to handle IPython 6.0