easyblock = "PythonPackage"

name = 'phono3py'
version = '1.12.7.46'

homepage = 'http://phonopy.sourceforge.net/phono3py/index.html'
description = """This software calculates phonon-phonon interaction related properties"""

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

source_urls = [
    'https://pypi.python.org/packages/a5/93/3a9cc9f134ba1f7aa246a27c8a02137e7f9a7311df87ae656bba9051c6df/']
sources = ['%(name)s-%(version)s.tar.gz']

# notice the hash hack to override setup.py
prebuildopts = 'python setup.py build #'
# another hack
preinstallopts = 'python setup.py install --prefix=%(installdir)s #'
skipsteps = ['test']
options = {'modulename': 'phonopy'}

python = "Python"
pythonversion = '2.7.13'
pythonshortversion = ".".join(pythonversion.split(".")[:-1])

versionsuffix = "-%s-%s" % (python, pythonversion)

dependencies = [
    (python, pythonversion, '', True),
    ('OpenBLAS', '0.2.19', '-GCC-6.3.0-2.27-LAPACK-3.7.0', True),
]

moduleclass = 'phys'
