from setuptools import setup, find_packages

setup(name='dcmstack',
      description='Stack DICOM images into volumes',
      version='0.6.dev',
      author='Brendan Moloney',
      author_email='moloney@ohsu.edu',
      packages=find_packages('src'),
      package_dir = {'':'src'},
      install_requires=['pydicom >= 0.9.7', 
                        'nibabel',
                        'nose',
                       ],
      entry_points = {'console_scripts' : \
                          ['dcmstack = dcmstack.dcmstack_cli:main',
                           'nitool = dcmstack.nitool_cli:main',
                          ],
                     },
      test_suite = 'nose.collector'
     )

from setuptools import setup, find_packages

setup(name='dcmstack',
      description='Stack DICOM images into volumes',
      version='0.6.dev',
      author='Brendan Moloney',
      author_email='moloney@ohsu.edu',
      packages=find_packages('src'),
      package_dir = {'':'src'},
      install_requires=['pydicom >= 0.9.7', 
                        'nibabel',
                       ],
      extras_require = {
                        'doc':  ["sphinx"],
                        'test': ["nose"],
                       },
      entry_points = {'console_scripts' : \
                          ['dcmstack = dcmstack.dcmstack_cli:main',
                           'nitool = dcmstack.nitool_cli:main',
                          ],
                     },
      test_suite = 'nose.collector'
     )

Make nose and sphinx optional dependencies.