# IT4Innovations 2018

easyblock = 'PythonPackage'

name = 'Tensorflow'
version = '1.12.0'
versionsuffix = '-Py-3.6'

homepage = 'https://www.tensorflow.org/'
description = "An open-source software library for Machine Intelligence"

toolchain = {'name': 'GCC', 'version': '6.3.0-2.27'}

#source_urls = ['https://pypi.python.org/packages/1f/38/c255432f18005362dd2459e3bff2b2411eb7d02ca09fa20ee1dd1311f69f/']
sources = [
    'tensorflow-%(version)s-cp36-cp36mu-linux_x86_64.whl',
]

dependencies = [
    ('Py', '3.6', '', True),
    ('OpenMPI', '2.1.1'),
    ('protobuf', '3.6.1', '-Py-3.6', True),
    ('numpy', '1.15.4', '-Py-3.6', True),
    ('protobuf-python', '3.6.1', '-Py-3.6', True),
    ('absl-py', '0.1.10', '-Py-3.6', True),
    ('Keras_Applications', '1.0.6', '-Py-3.6', True),
    ('Keras_Preprocessing', '1.0.5', '-Py-3.6', True),
    ('mock', '2.0.0', '-Py-3.6', True),
    ('pbr', '5.1.1', '-Py-3.6', True),
    ('funcsigs', '1.0.2', '-Py-3.6', True),
]

use_pip = True
unpack_sources = False

sanity_check_paths = {
    'files': ['bin/tensorboard'],
    'dirs': ['lib/python3.6/site-packages/tensorflow-1.12.0.dist-info/'],
}

moduleclass = 'lib'
