easyblock = 'VersionIndependentPythonPackage'

name = 'hanythingondemand'
version = '2.2.3'

homepage = 'https://github.com/hpcugent/hanythingondemand'
description = """HanythingOnDemand (HOD) is a system for provisioning virtual Hadoop clusters over a large physical cluster.
It uses the Torque resource manager to do node allocation."""

toolchain = {'name': 'intel', 'version': '2015a'}

source_urls = [
    'https://github.com/hpcugent/hanythingondemand/archive/'
]
sources = ['%s.tar.gz' % version]

python = 'Python'
pythonver = '2.7.9'
pythonshortver = '.'.join(pythonver.split('.')[:2])
versionsuffix = '-%s-%s' % (python, pythonver)

# a Python version with mpi4py and pbs_python (vsc.utils.fancylogger) is required at runtime
dependencies = [
    (python, pythonver),
    ('pbs_python', '4.6.0', versionsuffix),
    ('vsc-mympirun', '3.4.2', '', True),
    ('vsc-base', '2.1.2', '', True),
    ('netifaces', '0.10.4', versionsuffix),
    ('netaddr', '0.7.14', versionsuffix),
]

options = {'modulename': 'hod'}

moduleclass = 'tools'
