easyblock = 'PythonPackage'

name = 'Tensorflow'
version = '1.2.1'

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

toolchain = SYSTEM

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 = [
    ('Python', '%s.%s.1' % (local_pymaj, local_pymin)),
    ('GCC', '7.1.0-2.28'),
]

use_pip = True
unpack_sources = False

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

moduleclass = 'lib'
