#!/usr/bin/env python
#
# ~~~
# This file is part of the dune-xt-common project:
#   https://github.com/dune-community/dune-xt-common
# Copyright 2009-2018 dune-xt-common developers and contributors. All rights reserved.
# License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
# Authors:
#   Felix Schindler (2017)
#   Rene Milk       (2016 - 2018)
#
#      or  GPL-2.0+ (http://opensource.org/licenses/gpl-license)
#          with "runtime exception" (http://www.dune-project.org/license.html)
# ~~~

import sys
from setuptools import setup, find_packages

requires=['binpacking==1.3', 'cython', 'jinja2', 'docopt', 'pylicense3>=0.3.0',
                        'ipython', 'pytest', 'pytest-cov', 'cmake_format==0.4.1']
if '${HAVE_MPI}' == 'TRUE':
    requires.append('mpi4py')

setup(name='dune.xt.common',
      version='2.4',
      namespace_packages=['dune'],
      description='Python for Dune-Xt',
      author='The dune-xt devs',
      author_email='dune-xt-dev@listserv.uni-muenster.de',
      url='https://github.com/dune-community/dune-xt-common',
      packages = find_packages(),
      zip_safe = 0,
      package_data = {'': ['*.so']},
      install_requires=requires,
      scripts=['./scripts/generate_compare_functions.py',
               './scripts/distribute_testing.py',
               './scripts/dxt_code_generation.py',
               './scripts/numa_speedup.py',
               './wrapper/dune_xt_execute.py'])
