easyblock = 'PythonPackage'

name = 'Tensorflow'
version = '1.2.0'
versionsuffix = '-mkl'

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

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

local_pymaj = '3'
local_pymin = '6'
local_pymajmin = local_pymaj + local_pymin

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

dependencies = [
    ('Java', '1.8.0_121', '', True),
    ('protobuf', '3.4.0', '-GCC-6.4.0-2.28-Python-3.6.1', True)
]

use_pip = True
unpack_sources = False

sanity_check_paths = {
    'files': ['bin/tensorboard'],
    'dirs': [''],
}

moduleclass = 'lib'
