old_contents: # Install setuptools if not installed.
  try:
      import setuptools
  except ImportError:
      from ez_setup import use_setuptools
      use_setuptools()
  
  from setuptools import setup, find_packages
  
  
  # read README as the long description
  with open('README.md', 'r') as f:
      long_description = f.read()
  
  setup(
      name='choicemodels',
      version='0.1dev',
      description='Tools for discrete choice estimation',
      long_description=long_description,
      author='Urban Analytics Lab',
      url='https://github.com/ual/choicemodels',
      classifiers=[
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.6',
          'License :: OSI Approved :: BSD License'
      ],
      packages=find_packages(exclude=['*.tests']),
      install_requires=[
          'future>=0.16.0',
          'numpy>=1.8.0',
          'pandas>=0.17.0',
          'patsy>=0.3.0',
          'scipy>=0.13.3',
          'statsmodels>=0.8.0',
      ]
  )
  
new_contents: # Install setuptools if not installed.
  try:
      import setuptools
  except ImportError:
      from ez_setup import use_setuptools
      use_setuptools()
  
  from setuptools import setup, find_packages
  
  
  # read README as the long description
  with open('README.md', 'r') as f:
      long_description = f.read()
  
  setup(
      name='choicemodels',
      version='0.1dev',
      description='Tools for discrete choice estimation',
      long_description=long_description,
      author='Urban Analytics Lab',
      url='https://github.com/ual/choicemodels',
      classifiers=[
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
          'Programming Language :: Python :: 3',
          'Programming Language :: Python :: 3.6',
          'License :: OSI Approved :: BSD License'
      ],
      packages=find_packages(exclude=['*.tests']),
      install_requires=[
          'future>=0.16.0',
          'numpy>=1.8.0',
          'pandas>=0.17.0',
          'patsy>=0.3.0',
          'scipy>=0.13.3',
          'statsmodels>=0.8.0',
          'pylogit>=0.1'
      ]
  )
  
subject: add pylogit dependency