summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorPramod Kumbhar <pramod.s.kumbhar@gmail.com>2016-11-02 21:05:47 +0100
committerTodd Gamblin <tgamblin@llnl.gov>2016-11-02 15:05:47 -0500
commitb706da1109e5bf71f3f7ffd56598677ebb9c3dad (patch)
tree07a2a3685695f1475b97d1f2da3f8ec9f982002e /var
parentb304387308898da4e820e0fd683db536ba7d2d55 (diff)
downloadspack-b706da1109e5bf71f3f7ffd56598677ebb9c3dad.tar.gz
spack-b706da1109e5bf71f3f7ffd56598677ebb9c3dad.tar.bz2
spack-b706da1109e5bf71f3f7ffd56598677ebb9c3dad.tar.xz
spack-b706da1109e5bf71f3f7ffd56598677ebb9c3dad.zip
Set TAU_MAKEFILE env variable (#2210)
* In order to use TAU module, we have to set TAU_MAKEFILE env variable. * updated with suggestions from @citibeth
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/tau/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/tau/package.py b/var/spack/repos/builtin/packages/tau/package.py
index 1801b41c37..d6b0a98d67 100644
--- a/var/spack/repos/builtin/packages/tau/package.py
+++ b/var/spack/repos/builtin/packages/tau/package.py
@@ -24,7 +24,7 @@
##############################################################################
from spack import *
import os
-import os.path
+import glob
from llnl.util.filesystem import join_path
@@ -146,3 +146,8 @@ class Tau(Package):
dest = join_path(self.prefix, d)
if os.path.isdir(src) and not os.path.exists(dest):
os.symlink(join_path(subdir, d), dest)
+
+ def setup_environment(self, spack_env, run_env):
+ pattern = join_path(self.prefix.lib, 'Makefile.*')
+ files = glob.glob(pattern)
+ run_env.set('TAU_MAKEFILE', files[0])