# IT4Innovations 2018

easyblock = 'PythonPackage'

name = 'Theano'
version = '1.0.1'

homepage = 'http://deeplearning.net/software/theano'
description = """Theano is a Python library that allows you to define, optimize,
and evaluate mathematical expressions involving multi-dimensional arrays efficiently."""

toolchain = {'name': 'Py', 'version': '3.6'}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]

dependencies = [
    ('six', '1.11.0'),
    ('numpy', '1.13.3'),
    ('scipy', '1.0.0'),
    ('mkl', '2017.4.239', '', True),
]

modextravars = {'THEANO_FLAGS': 'blas.ldflags="-lmkl -lguide -lpthread"'}

sanity_check_paths = {
    'files': ['bin/theano-cache', 'bin/theano-nose'],
    'dirs': ['lib/python3.6/site-packages/%(name)s-%(version)s-py3.6.egg'],
}

moduleclass = 'python'
