diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-02-03 08:54:22 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-02-03 08:54:22 -0700 |
commit | bc4bf71d8fe040ec3f7fce60633e0ed198ebdbf0 (patch) | |
tree | 284bd52e9d6862129a480ee1049f35d67e6bc137 /var | |
parent | fe358e24e3a694001168bc06162f9add20064883 (diff) | |
parent | d2fb1522a3524315a036cd5d46a99b2e05f1ad62 (diff) | |
download | spack-bc4bf71d8fe040ec3f7fce60633e0ed198ebdbf0.tar.gz spack-bc4bf71d8fe040ec3f7fce60633e0ed198ebdbf0.tar.bz2 spack-bc4bf71d8fe040ec3f7fce60633e0ed198ebdbf0.tar.xz spack-bc4bf71d8fe040ec3f7fce60633e0ed198ebdbf0.zip |
Merge pull request #421 from adamjstewart/features/phonopy
Add Phonopy and PyYAML Python modules
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-phonopy/package.py | 18 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/py-pyyaml/package.py | 13 |
2 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-phonopy/package.py b/var/spack/repos/builtin/packages/py-phonopy/package.py new file mode 100644 index 0000000000..6d10fea74f --- /dev/null +++ b/var/spack/repos/builtin/packages/py-phonopy/package.py @@ -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) diff --git a/var/spack/repos/builtin/packages/py-pyyaml/package.py b/var/spack/repos/builtin/packages/py-pyyaml/package.py new file mode 100644 index 0000000000..cae42f6e59 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pyyaml/package.py @@ -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) |