import versioneer

from setuptools import setup, find_packages

with open('requirements.txt') as f:
    required = f.read().splitlines()

reqs = []
links = []
for ir in required:
    if ir[0:3] == 'git':
        links += [ir + '#egg=' + ir.split('/')[-1] + '-0']
        reqs += [ir.split('/')[-1]]
    else:
        reqs += [ir]

setup(name='devito',
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
      description="Finite Difference DSL for symbolic computation.",
      long_descritpion="""Devito is a new tool for performing
      optimised Finite Difference (FD) computation from high-level
      symbolic problem definitions. Devito performs automated code
      generation and Just-In-time (JIT) compilation based on symbolic
      equations defined in SymPy to create and execute highly
      optimised Finite Difference kernels on multiple computer
      platforms.""",
      url='http://www.opesci.org/devito',
      author="Imperial College London",
      author_email='opesci@imperial.ac.uk',
      license='MIT',
      packages=find_packages(exclude=['docs', 'tests', 'examples']),
      install_requires=reqs,
      dependency_links=links,
      test_suite='tests')

import versioneer

from setuptools import setup, find_packages

with open('requirements.txt') as f:
    required = f.read().splitlines()

reqs = []
links = []
for ir in required:
    if ir[0:3] == 'git':
        links += [ir + '#egg=' + ir.split('/')[-1] + '-0']
        reqs += [ir.split('/')[-1]]
    else:
        reqs += [ir]

setup(name='devito',
      version=versioneer.get_version(),
      cmdclass=versioneer.get_cmdclass(),
      description="Finite Difference DSL for symbolic computation.",
      long_description="""Devito is a new tool for performing
      optimised Finite Difference (FD) computation from high-level
      symbolic problem definitions. Devito performs automated code
      generation and Just-In-time (JIT) compilation based on symbolic
      equations defined in SymPy to create and execute highly
      optimised Finite Difference kernels on multiple computer
      platforms.""",
      url='http://www.opesci.org/devito',
      author="Imperial College London",
      author_email='opesci@imperial.ac.uk',
      license='MIT',
      packages=find_packages(exclude=['docs', 'tests', 'examples']),
      install_requires=reqs,
      dependency_links=links,
      test_suite='tests')

fix typo that had been bothering me in the travis logs