summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Krafczyk <krafczyk.matthew@gmail.com>2017-01-04 17:49:05 -0500
committerMatthew Krafczyk <krafczyk.matthew@gmail.com>2017-01-16 12:04:52 -0500
commitfa39273e1fb1cf12b1be3083918f12699025e802 (patch)
tree1eb966e3c49d5fb68b456714b41d878780c48e61
parentef32f3880f8d3ef67256a9bcddba25c393ec141b (diff)
downloadspack-fa39273e1fb1cf12b1be3083918f12699025e802.tar.gz
spack-fa39273e1fb1cf12b1be3083918f12699025e802.tar.bz2
spack-fa39273e1fb1cf12b1be3083918f12699025e802.tar.xz
spack-fa39273e1fb1cf12b1be3083918f12699025e802.zip
Correct how rockstar prefix is found and written to file
-rw-r--r--var/spack/repos/builtin/packages/py-yt/package.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/py-yt/package.py b/var/spack/repos/builtin/packages/py-yt/package.py
index 2e592b4ab0..4de7cf700e 100644
--- a/var/spack/repos/builtin/packages/py-yt/package.py
+++ b/var/spack/repos/builtin/packages/py-yt/package.py
@@ -72,9 +72,10 @@ class PyYt(Package):
def install(self, spec, prefix):
if '+rockstar' in spec:
if os.path.exists('rockstar.cfg'):
- rm('rockstar.cfg')
+ os.remove('rockstar.cfg')
rockstar_cfg = open('rockstar.cfg', 'w')
- rockstar_cfg.write(os.environ['ROCKSTAR_DIR']+"/lib\n")
+ rockstar_cfg.write(spec.get_dependency('rockstar').spec.prefix)
+ rockstar_cfg.close()
setup_py("install", "--prefix=%s" % prefix)
self.check_install(spec, prefix)