summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-03-24 02:53:56 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-03-24 02:53:56 -0700
commit1306cdd998052dc235cd0329b39d011f3c0b9da9 (patch)
treea3b911684f7cb1b919e6a7d57d6cf1b5e13e99b7 /var
parent4be8472f6120c6aac0e4c3e53deda3cb1ffdd45c (diff)
parent34a8f0c96bc50870f20f094d95b403b2bb19487d (diff)
downloadspack-1306cdd998052dc235cd0329b39d011f3c0b9da9.tar.gz
spack-1306cdd998052dc235cd0329b39d011f3c0b9da9.tar.bz2
spack-1306cdd998052dc235cd0329b39d011f3c0b9da9.tar.xz
spack-1306cdd998052dc235cd0329b39d011f3c0b9da9.zip
Merge pull request #618 from epfl-scitas/fixes/espresso_no_module
fix : no module file gets generated by espresso
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/espresso/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/espresso/package.py b/var/spack/repos/builtin/packages/espresso/package.py
index a2bf58f585..59f362ab46 100644
--- a/var/spack/repos/builtin/packages/espresso/package.py
+++ b/var/spack/repos/builtin/packages/espresso/package.py
@@ -32,6 +32,10 @@ class Espresso(Package):
if '+elpa' in spec and ('~mpi' in spec or '~scalapack' in spec):
raise RuntimeError(error.format(variant='elpa'))
+ def setup_environment(self, spack_env, run_env):
+ # Espresso copies every executable in prefix without creating sub-folders
+ run_env.prepend_path('PATH', self.prefix)
+
def install(self, spec, prefix):
self.check_variants(spec)