1#!/usr/bin/env python
2from _registry import legacy_datasets
3
4
5def configuration(parent_package='', top_path=None):
6    from numpy.distutils.misc_util import Configuration
7
8    config = Configuration('data', parent_package, top_path)
9    # This minimal dataset was available as part of
10    # scikit-image 0.15 and will be retained until
11    # further notice.
12    # Testing data and additional datasets should only
13    # be made available via pooch
14    config.add_data_files(*legacy_datasets)
15    # It seems hard to create a consistent hash for README.txt since
16    # the line endings keep getting converted
17    config.add_data_files('README.txt')
18
19    return config
20
21
22if __name__ == '__main__':
23    from numpy.distutils.core import setup
24    setup(maintainer='scikit-image Developers',
25          author='scikit-image Developers',
26          maintainer_email='scikit-image@python.org',
27          description='Minimal sample dataset for scikit-image',
28          url='https://github.com/scikit-image/scikit-image',
29          license='SciPy License (BSD Style)',
30          **(configuration(top_path='').todict())
31          )
32