from __future__ import unicode_literals

import os
import sys

from setuptools import find_packages, setup


def setup_package():
   src_path = os.path.dirname(os.path.abspath(sys.argv[0]))
   old_path = os.getcwd()
   os.chdir(src_path)
   sys.path.insert(0, src_path)


   setup_requires = ['']
   install_requires = [ 'numpy>=1.10', 'scipy>=0.17','h5py>=2.5', "pandas>=0.15",
                       'matplotlib>=1.5', 'scikit-learn>=0.18.1', 'brewer2mpl>=1.3']
   tests_require = install_requires

   metadata = dict(
       name='slalom',
       version='1.0.0.dev11',
       maintainer="slalom Developers",
       maintainer_email="fbuettner.phys@gmail.com",
       license="Apache 2.0",
       url='http://bioFAM.github.io/slalom/',
       packages=find_packages(),
       zip_safe=True,
       install_requires=install_requires,
       setup_requires=setup_requires,
       tests_require=tests_require,
       include_package_data=True)

   try:
       from distutils.command.bdist_conda import CondaDistribution
   except ImportError:
       pass
   else:
       metadata['distclass'] = CondaDistribution
       metadata['conda_buildnum'] = 1
       metadata['conda_features'] = ['mkl']

   try:
       setup(**metadata)
   finally:
       del sys.path[0]
       os.chdir(old_path)


if __name__ == '__main__':
   setup_package()
