#!/usr/bin/env python
from setuptools import setup

def find_version(path):
    import re
    # path shall be a plain ascii text file.
    s = open(path, 'rt').read()
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              s, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError("Version not found")

setup(name="vmad", version=find_version("vmad/version.py"),
      author="<NAME>",
      maintainter="<NAME>",
      maintainter_email="<EMAIL>",
      description="An extensible automated differentiation tool",
      zip_safe=True, # this should be pure python
      packages=[
                "vmad", "vmad.tests",
                "vmad.core", "vmad.core.tests",
                "vmad.core.stdlib",
                "vmad.lib", "vmad.lib.tests",
                "vmad.contrib",
        ],
      license='GPLv3',
      install_requires=['numpy', 
                        'scipy', # currently needed for 1d linesearch
                       ]
      )


#!/usr/bin/env python
from setuptools import setup

def find_version(path):
    import re
    # path shall be a plain ascii text file.
    s = open(path, 'rt').read()
    version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
                              s, re.M)
    if version_match:
        return version_match.group(1)
    raise RuntimeError("Version not found")

setup(name="vmad", version=find_version("vmad/version.py"),
      author="<NAME>",
      maintainter="<NAME>",
      maintainter_email="<EMAIL>",
      description="An extensible automated differentiation tool",
      zip_safe=True, # this should be pure python
      packages=[
                "vmad", "vmad.tests",
                "vmad.core", "vmad.core.tests",
                "vmad.core.stdlib",
                "vmad.lib", "vmad.lib.tests",
                "vmad.contrib",
        ],
      license='GPLv3',
      install_requires=['numpy', 
                        'scipy', # currently needed for 1d linesearch
                       ]
      )


#!/usr/bin/env python # path shall be a plain ascii text file. # this should be pure python # currently needed for 1d linesearch