easyblock = 'PythonPackage'

name = 'Tensorflow'
version = '0.12.1'
versionsuffix = '-Python-%(pyver)s'

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

toolchain = {'name': 'intel', 'version': '2017.00'}

pymaj = '2'
pymin = '7'
pymajmin = pymaj + pymin

source_urls = ['https://pypi.python.org/packages/7e/c6/837f4e249aae5c86a632eaaa9779e601eca1487772f8ad75c347bf9e813f/']
sources = [
    'tensorflow-%%(version)s-cp%(pymajmin)s-cp%(pymajmin)smu-manylinux1_x86_64.whl' % {'pymajmin': pymajmin},
]
checksums = ['c98fd26b79a97cc490c942bbafed5462']

dependencies = [
    ('Python', '%s.%s.11' % (pymaj, pymin)),
    ('protobuf-python', '3.2.0', versionsuffix),
]

use_pip = True
unpack_sources = False

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

moduleclass = 'lib'
