old_contents: # -*- coding: utf-8 -*-
  
  import sys
  from setuptools import setup, find_packages
  from codecs import open
  from os import path
  
  here = path.abspath(path.dirname(__file__))
  
  with open(path.join(here, 'README.md'), encoding='utf-8') as f:
      long_description = f.read()
  
  if sys.hexversion < 0x03000000:
      reqfile = 'install/requirements/requirementsSetup.txt'
  else:
      reqfile = 'install/requirements/requirementsSetup3.txt'
  
  with open(path.join(here, reqfile)) as f:
      requirements = f.read().splitlines()
  
  with open(path.join(here, 'version.txt')) as f:
      version = f.read().strip()
  
  setup(
      name='spinalcordtoolbox',
      version=version,
      description='Library of analysis tools for MRI of the spinal cord',
      long_description=long_description,
      url='http://www.neuro.polymtl.ca/home',
      author='NeuroPoly Lab, Polytechnique Montreal',
      author_email='neuropoly@googlegroups.com',
      license='MIT',
      classifiers=[
          'Development Status :: 4 - Beta',
          'Intended Audience :: Healthcare Industry',
          'Intended Audience :: Education',
          'Topic :: Scientific/Engineering :: Medical Science Apps.',
          'License :: OSI Approved :: MIT License',
          'Operating System :: Unix',
          'Operating System :: MacOS',
          'Operating System :: Microsoft :: Windows',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
      ],
      keywords='Magnetic Resonance Imaging MRI spinal cord analysis template',
      packages=find_packages(exclude=['dev', 'dev.*', 'install', 'testing']),
      package_data={},
      install_requires=requirements,
      include_package_data=True,
  
      # To provide executable scripts, use entry points in preference to the
      # "scripts" keyword. Entry points provide cross-platform support and allow
      # pip to create the appropriate form of executable for the target platform.
      # entry_points={'console_scripts': ['sct_label_image=spinalcordtoolbox.gui.cli:segment_image_cli'], },
  )
  
new_contents: # -*- coding: utf-8 -*-
  
  import sys
  from setuptools import setup, find_packages
  from codecs import open
  from os import path
  
  here = path.abspath(path.dirname(__file__))
  
  with open(path.join(here, 'README.md'), encoding='utf-8') as f:
      long_description = f.read()
  
  if sys.hexversion < 0x03000000:
      reqfile = 'install/requirements/requirementsSetup.txt'
  else:
      reqfile = 'install/requirements/requirementsSetup3.txt'
  
  with open(path.join(here, reqfile)) as f:
      requirements = f.read().splitlines()
  
  with open(path.join(here, 'version.txt')) as f:
      version = f.read().strip()
  
  setup(
      name='spinalcordtoolbox',
      version=version,
      description='Library of analysis tools for MRI of the spinal cord',
      long_description=long_description,
      url='http://www.neuro.polymtl.ca/home',
      author='NeuroPoly Lab, Polytechnique Montreal',
      author_email='neuropoly@googlegroups.com',
      license='MIT',
      classifiers=[
          'Development Status :: 4 - Beta',
          'Intended Audience :: Healthcare Industry',
          'Intended Audience :: Education',
          'Topic :: Scientific/Engineering :: Medical Science Apps.',
          'License :: OSI Approved :: MIT License',
          'Operating System :: Unix',
          'Operating System :: MacOS',
          'Programming Language :: Python',
          'Programming Language :: Python :: 2',
          'Programming Language :: Python :: 2.7',
      ],
      keywords='Magnetic Resonance Imaging MRI spinal cord analysis template',
      packages=find_packages(exclude=['.git', 'data', 'dev', 'dev.*', 'install', 'testing']),
      package_data={},
      install_requires=requirements,
      include_package_data=True,
      extras_require={
       'docs': [
        'sphinx',
        'sphinxcontrib-programoutput',
       ],
      },
      # To provide executable scripts, use entry points in preference to the
      # "scripts" keyword. Entry points provide cross-platform support and allow
      # pip to create the appropriate form of executable for the target platform.
      # entry_points={'console_scripts': ['sct_label_image=spinalcordtoolbox.gui.cli:segment_image_cli'], },
  )
  
subject: add extra deps for sphinx building