# IT4Innovations 2017

# cthyb extension installed manually https://triqs.ipht.cnrs.fr/1.4/applications/cthyb/install.html
# som extension installed with EB s/som/som-1.1-foss-2017a.eb

easyblock = 'CMakeMake'

name = 'TRIQS'
version = '1.4.1'

homepage = 'https://triqs.ipht.cnrs.fr'
description = """TRIQS (Toolbox for Research on Interacting Quantum Systems) is a scientific
    project providing a set of C++ and Python libraries to develop new tools for the study
    of interacting quantum systems."""

toolchain = {'name': 'foss', 'version': '2017a'}

source_urls = ['https://github.com/TRIQS/triqs/archive/']
sources = ['%(version)s.tar.gz']

dependencies = [
    ('Mako', '1.0.7', '', ('Py', '2.7')),
    ('mpi4py', '3.0.0', '', ('Py', '2.7')),
    ('Boost', '1.66.0', '-Py-2.7', ('foss', '2017a')),
    ('numpy', '1.13.3', '', ('Py', '2.7')),
    ('scipy', '1.0.0', '', ('Py', '2.7')),
    ('h5py', '2.7.1', '', ('Py', '2.7')),
    ('Jinja2', '2.10', '', ('Py', '2.7')),
    ('matplotlib', '2.1.1', '', ('Py', '2.7')),
    ('tornado', '4.5.3', '', ('Py', '2.7')),
    ('virtualenv', '15.1.0', '', ('Py', '2.7')),
    ('pyzmq', '16.0.4', '', ('Py', '2.7')),
#    ('HDF5', '1.10.1', '-serial'),
]

builddependencies = [
    ('CMake', '3.13.1', '', True),
]

separate_build_dir = True

sanity_check_paths = {
    'files': ['bin/pytriqs', 'lib/libtriqs.so'],
    'dirs': [],
}

moduleclass = 'lib'
