#! /usr/bin/env python
#
# Copyright (C) 2015 California Institute of Technology

DESCRIPTION = "ztf_sim: Schedule simulator for the Zwicky Transient Facility"
LONG_DESCRIPTION = """\
Schedule simulator for the Zwicky Tranisent Facility
"""

DISTNAME = 'ztf_sim'
MAINTAINER = 'Eric Bellm'
MAINTAINER_EMAIL = 'ebellm@caltech.edu'
URL = 'https://github.com/ZwickyTransientFacility/ztf_sim/'
LICENSE = 'BSD (3-clause)'
DOWNLOAD_URL = 'https://github.com/ZwickyTransientFacility/ztf_sim/'
VERSION = '0.0.1.dev'

try:
    from setuptools import setup
    _has_setuptools = True
except ImportError:
    from distutils.core import setup

#def check_dependencies():
#    install_requires = []
#
#    # Just make sure dependencies exist, I haven't rigorously
#    # tested what the minimal versions that will work are
#    # (help on that would be awesome)
#    try:
#        import numpy
#    except ImportError:
#        install_requires.append('numpy')
#    try:
#        import scipy
#    except ImportError:
#        install_requires.append('scipy')
#    try:
#        import matplotlib
#    except ImportError:
#        install_requires.append('matplotlib')
#    try:
#        import pandas
#    except ImportError:
#        install_requires.append('pandas')
#
#    return install_requires

if __name__ == "__main__":

#    install_requires = check_dependencies()

    setup(name=DISTNAME,
        author=MAINTAINER,
        author_email=MAINTAINER_EMAIL,
        maintainer=MAINTAINER,
        maintainer_email=MAINTAINER_EMAIL,
        description=DESCRIPTION,
        long_description=LONG_DESCRIPTION,
        license=LICENSE,
        url=URL,
        version=VERSION,
        download_url=DOWNLOAD_URL,
        install_requires=install_requires,
        packages=['ztf_sim'],
        classifiers=[
                     'Intended Audience :: Science/Research',
                     'Programming Language :: Python :: 2.7',
                     'License :: OSI Approved :: BSD License',
                     'Topic :: Scientific/Engineering :: Visualization',
                     'Operating System :: POSIX',
                     'Operating System :: Unix',
                     'Operating System :: MacOS'],
          )


@@ -38,16 +38,19 @@
 (C) 2015
+-17
  Califor
@@ -77,16 +77,16 @@
 hnology%0A
-
 %0ADESCRIP
@@ -310,21 +310,17 @@
 = 'e
+c
 bellm@
-caltech
+uw
 .edu
@@ -492,17 +492,17 @@
  = '0.0.
-1
+2
 .dev'%0A%0At
@@ -623,17 +623,16 @@
  setup%0A%0A
-#
 def chec
@@ -649,17 +649,16 @@
 cies():%0A
-#
     inst
@@ -675,19 +675,17 @@
 es = %5B%5D%0A
-#%0A#
+%0A
     # Ju
@@ -738,17 +738,16 @@
 orously%0A
-#
     # te
@@ -796,17 +796,16 @@
 ork are%0A
-#
     # (h
@@ -834,17 +834,16 @@
 wesome)%0A
-#
     try:
@@ -835,33 +835,32 @@
 esome)%0A    try:%0A
-#
         import n
@@ -864,17 +864,16 @@
 t numpy%0A
-#
     exce
@@ -880,33 +880,32 @@
 pt ImportError:%0A
-#
         install_
@@ -925,25 +925,24 @@
 nd('numpy')%0A
-#
     try:%0A#  
@@ -930,33 +930,32 @@
 umpy')%0A    try:%0A
-#
         import s
@@ -959,17 +959,16 @@
 t scipy%0A
-#
     exce
@@ -975,33 +975,32 @@
 pt ImportError:%0A
-#
         install_
@@ -1024,17 +1024,16 @@
 scipy')%0A
-#
     try:
@@ -1025,33 +1025,32 @@
 cipy')%0A    try:%0A
-#
         import m
@@ -1052,20 +1052,217 @@
 ort 
-matplotlib%0A#
+astropy%0A    except ImportError:%0A        install_requires.append('astropy')%0A    try:%0A        import astroplan%0A    except ImportError:%0A        install_requires.append('astroplan')%0A    try:%0A        import pandas%0A
     
@@ -1273,33 +1273,32 @@
 pt ImportError:%0A
-#
         install_
@@ -1318,22 +1318,116 @@
 nd('
-matplotlib
+pandas')%0A    try:%0A        import sklearn%0A    except ImportError:%0A        install_requires.append('sklearn
 ')%0A
-#
     
@@ -1431,17 +1431,16 @@
    try:%0A
-#
         
@@ -1450,16 +1450,23 @@
 ort 
+sklearn_
 pandas%0A
-#
     
@@ -1485,17 +1485,16 @@
 tError:%0A
-#
         
@@ -1510,32 +1510,40 @@
 equires.append('
+sklearn_
 pandas')%0A#%0A#    
@@ -1535,19 +1535,324 @@
 andas')%0A
-#%0A#
+    try:%0A        import xgboost%0A    except ImportError:%0A        install_requires.append('xgboost')%0A    try:%0A        import transitions%0A    except ImportError:%0A        install_requires.append('transitions')%0A    try:%0A        import gurobipy%0A    except ImportError:%0A        install_requires.append('gurobipy')%0A%0A
     retu
@@ -1900,17 +1900,16 @@
 in__%22:%0A%0A
-#
     inst

add dependencies to setup.py