easyblock = "PythonPackage"

name = 'ScientificPython'
version = '2.9.4'

homepage = 'https://sourcesup.cru.fr/projects/scientific-py/'
description = """ScientificPython is a collection of Python modules for scientific local_computing.
 It contains support for geometry, mathematical functions, statistics, physical units, IO, visualization,
 and parallelization."""

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

source_urls = ['https://sourcesup.renater.fr/frs/download.php/4570']
sources = [SOURCE_TAR_GZ]

local_python = 'Python'
local_pythonversion = '2.7.9'
local_pythonshortversion = '.'.join(local_pythonversion.split('.')[:-1])

versionsuffix = "-%s-%s" % (local_python, local_pythonversion)

dependencies = [
    (local_python, local_pythonversion),
    # older version of numpy than the one included in Python module required
    # cfr.
    # https://bitbucket.org/khinsen/scientificpython/issue/13/numpy-19-has-dropped-support-for
    ('numpy', '1.8.2', versionsuffix),
]

options = {'modulename': 'Scientific'}

sanity_check_paths = {
    'files': [],
    'dirs': ['lib/local_python%s/site-packages/Scientific' % local_pythonshortversion],
}

moduleclass = 'math'
