Merge pull request #421 from adamjstewart/features/phonopy

Add Phonopy and PyYAML Python modules
This commit is contained in:
Todd Gamblin 2016-02-03 08:54:22 -07:00
commit bc4bf71d8f
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,18 @@
from spack import *
class PyPhonopy(Package):
"""Phonopy is an open source package for phonon
calculations at harmonic and quasi-harmonic levels."""
homepage = "http://atztogo.github.io/phonopy/index.html"
url = "http://sourceforge.net/projects/phonopy/files/phonopy/phonopy-1.10/phonopy-1.10.0.tar.gz"
version('1.10.0', '973ed1bcea46e21b9bf747aab9061ff6')
extends('python')
depends_on('py-numpy')
depends_on('py-scipy')
depends_on('py-matplotlib')
depends_on('py-pyyaml')
def install(self, spec, prefix):
python('setup.py', 'install', '--home=%s' % prefix)

View File

@ -0,0 +1,13 @@
from spack import *
class PyPyyaml(Package):
"""PyYAML is a YAML parser and emitter for Python."""
homepage = "http://pyyaml.org/wiki/PyYAML"
url = "http://pyyaml.org/download/pyyaml/PyYAML-3.11.tar.gz"
version('3.11', 'f50e08ef0fe55178479d3a618efe21db')
extends('python')
def install(self, spec, prefix):
python('setup.py', 'install', '--prefix=%s' % prefix)