#! /usr/bin/env python

import os

from setuptools import setup, find_packages

version = "0.1"
descr = """Methods for integrating LABSN with mne-python"""

DISTNAME = 'mnefun'
DESCRIPTION = descr
MAINTAINER = 'Eric Larson'
MAINTAINER_EMAIL = 'larsoner@uw.edu'
URL = 'http://github.com/LABSN/mnefun'
LICENSE = 'BSD (3-clause)'
DOWNLOAD_URL = 'http://github.com/LABSN/mnefun'
VERSION = version


if __name__ == "__main__":
    if os.path.exists('MANIFEST'):
        os.remove('MANIFEST')

    with open('README.rst') as fid:
        long_description = fid.read()

    setup(
        name=DISTNAME,
        maintainer=MAINTAINER,
        include_package_data=True,
        maintainer_email=MAINTAINER_EMAIL,
        description=DESCRIPTION,
        license=LICENSE,
        url=URL,
        version=VERSION,
        download_url=DOWNLOAD_URL,
        long_description=long_description,
        zip_safe=False,  # the package can run out of an .egg file
        classifiers=[],
        platforms='any',
        install_requires=['mne', 'h5io'],
        packages=find_packages(),
        package_data={'mnefun': [
            'run_sss.sh',
            os.path.join('data', 'sss_cal.dat'),
            os.path.join('data', 'ct_sparse.fif'),
            os.path.join('data', 'canonical.yml'),
        ]},
        entry_points={'console_scripts': [
            'simulate_movement = mnefun.bin:simulate_movement',
            'plot_chpi_snr = mnefun.bin:plot_chpi_snr',
            'acq_qa = mnefun.bin:acq_qa',
        ]},
    )
