easyblock = 'PythonPackage'

name = 'vsc-base'
version = '2.4.2'

homepage = 'http://hpcugent.github.com/vsc-mympirun/'
description = """VSC-tools is a set of Python libraries and scripts that are commonly used within HPC-UGent."""

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

sources = [SOURCE_TAR_GZ]
source_urls = [PYPI_SOURCE]

pyver = '2.7.10'
versionsuffix = '-Python-%s' % pyver
dependencies = [('Python', pyver)]

# don't install as zipped egg, since vsc-* packages that depends on this will be broken
# since 'pkgutil.extend_path' doesn't work as expected with zipped eggs;
preinstallopts = "sed -i'eb.bk' \"s/'zip_safe': True,/'zip_safe': False,/g\" setup.py && "

options = {'modulename': 'vsc.utils'}

shortpyver = '.'.join(pyver.split('.')[:2])
sanity_check_paths = {
    'files': [],
    'dirs': ['lib/python%(pyver)s/site-packages/vsc_base-%%(version)s-py%(pyver)s.egg' % {'pyver': shortpyver}],
}

moduleclass = 'tools'
