easyblock = 'Bundle'

name = 'hyperspy'
version = '1.1.1'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://hyperspy.org/'
description = """HyperSpy is an open source Python library which provides tools to facilitate the interactive
 data analysis of multi-dimensional datasets that can be described as multi-dimensional arrays of a given signal
 (e.g. a 2D array of spectra a.k.a spectrum image)"""

toolchain = {'name': 'intel', 'version': '2016b'}

# this is a bundle of Python packages
exts_defaultclass = 'PythonPackage'

dependencies = [
    ('Python', '3.5.2'),  # provides dateutil, numpy, requests, scipy
    ('h5py', '2.6.0', versionsuffix + '-HDF5-1.8.18'),
    ('IPython', '5.1.0', versionsuffix),  # required for ipyparallel
    ('matplotlib', '1.5.3', versionsuffix),
]

exts_list = [
    ('dill', '0.2.5', {
        'source_urls': ['https://pypi.python.org/packages/source/d/dill'],
        'source_tmpl': 'dill-%(version)s.tgz',
    }),
    ('ipyparallel', '5.2.0', {
        'source_urls': ['https://pypi.python.org/packages/source/i/ipyparallel'],
    }),
    ('natsort', '5.0.1', {
        'source_urls': ['https://pypi.python.org/packages/source/n/natsort'],
    }),
    ('requests', '2.12.4', {
        'source_urls': ['https://pypi.python.org/packages/source/r/requests'],
    }),
    ('mpmath', '0.19', {
        'source_urls': ['https://pypi.python.org/packages/source/m/mpmath'],
    }),
    ('sympy', '1.0', {
        'source_urls': ['https://pypi.python.org/packages/source/s/sympy'],
    }),
    ('tqdm', '4.10.0', {
        'source_urls': ['https://pypi.python.org/packages/source/t/tqdm'],
    }),
    ('traits', '4.6.0', {
        'source_urls': ['https://pypi.python.org/packages/source/t/traits'],
    }),
    ('pyface', '5.1.0', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pyface/'],
    }),
    ('traitsui', '5.1.0', {
        'source_urls': ['https://pypi.python.org/packages/source/t/traitsui'],
    }),
    (name, version, {
        'source_urls': ['https://pypi.python.org/packages/source/h/hyperspy'],
    }),
]

modextrapaths = {'PYTHONPATH': ['lib/python%(pyshortver)s/site-packages']}

# specify that Bundle easyblock should run a full sanity check, rather than just trying to load the module
full_sanity_check = True

sanity_check_paths = {
    'files': [],
    'dirs': ['lib/python%(pyshortver)s/site-packages/'],
}

moduleclass = 'vis'
