from setuptools import setup, find_packages
setup(
    name = "pysmac",
    version = "0.1",
    packages = find_packages(),
    install_requires = ['numpy', 'docutils>=0.3', 'setuptools'],
    author = "Tobias Domhan",
    author_email = "domhant@informatik.uni-freiburg.de",
    description = "python interface to SMAC.",
    include_package_data = True,
    test_suite = 'pysmac.test.test_smacparse',
    keywords = "hyperparameter optimization hyperopt bayesian smac",
    url = "http://www.cs.ubc.ca/labs/beta/Projects/SMAC/"
)

@@ -37,16 +37,334 @@
 ackages%0A
+%0Adef check_java_exists():%0A    from subprocess import call%0A    try:%0A        call(%22java%22)%0A    except:%0A        error_msg = %22%22%22%0A        Java not found!%0A%0A        pysmac needs java in order to work. You can download java from:%0A        java.com/getjava%0A        %22%22%22%0A        raise RuntimeError(error_msg)%0A%0Acheck_java_exists()%0A%0A
 setup(%0A 
@@ -635,16 +635,121 @@
 SMAC.%22,%0A
+    # we need a long restructured text description%0A    #    long_description = open('Readme.md').read(),%0A
     incl

check for java