summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Krafczyk <krafczyk.matthew@gmail.com>2017-01-03 16:07:12 -0600
committerMatthew Krafczyk <krafczyk.matthew@gmail.com>2017-01-16 12:04:51 -0500
commitef32f3880f8d3ef67256a9bcddba25c393ec141b (patch)
tree3251adbf641945fa74b423100e51776c27fd2f95
parent31f7a01a9d1babf4aa161491d8ef4557724aa6ad (diff)
downloadspack-ef32f3880f8d3ef67256a9bcddba25c393ec141b.tar.gz
spack-ef32f3880f8d3ef67256a9bcddba25c393ec141b.tar.bz2
spack-ef32f3880f8d3ef67256a9bcddba25c393ec141b.tar.xz
spack-ef32f3880f8d3ef67256a9bcddba25c393ec141b.zip
Add rockstar support to py-yt package
-rw-r--r--var/spack/repos/builtin/packages/py-yt/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-yt/package.py b/var/spack/repos/builtin/packages/py-yt/package.py
index 00ea99c625..2e592b4ab0 100644
--- a/var/spack/repos/builtin/packages/py-yt/package.py
+++ b/var/spack/repos/builtin/packages/py-yt/package.py
@@ -53,6 +53,7 @@ class PyYt(Package):
variant("astropy", default=True, description="enable astropy support")
variant("h5py", default=True, description="enable h5py support")
variant("scipy", default=True, description="enable scipy support")
+ variant("rockstar", default=False, description="enable rockstar support")
extends("python")
@@ -65,9 +66,15 @@ class PyYt(Package):
depends_on("py-scipy", type=('build', 'run'), when="+scipy")
depends_on("py-setuptools", type="build")
depends_on("py-sympy", type=('build', 'run'))
+ depends_on("rockstar@yt", type=('build', 'run'), when="+rockstar")
depends_on("python @2.7:2.999,3.4:")
def install(self, spec, prefix):
+ if '+rockstar' in spec:
+ if os.path.exists('rockstar.cfg'):
+ rm('rockstar.cfg')
+ rockstar_cfg = open('rockstar.cfg', 'w')
+ rockstar_cfg.write(os.environ['ROCKSTAR_DIR']+"/lib\n")
setup_py("install", "--prefix=%s" % prefix)
self.check_install(spec, prefix)