diff options
author | Mayeul d'Avezac <mdavezac@gmail.com> | 2016-03-31 10:12:20 +0100 |
---|---|---|
committer | Mayeul d'Avezac <mdavezac@gmail.com> | 2016-03-31 10:12:20 +0100 |
commit | 397e0d1368d8f6077cb7ea59ee953b993ef3d244 (patch) | |
tree | 425c46d407b062a1b7aa6b9274fe92d5eb5ac217 | |
parent | 360994b638426f3c9ff4ede5d70c1e898189a100 (diff) | |
download | spack-397e0d1368d8f6077cb7ea59ee953b993ef3d244.tar.gz spack-397e0d1368d8f6077cb7ea59ee953b993ef3d244.tar.bz2 spack-397e0d1368d8f6077cb7ea59ee953b993ef3d244.tar.xz spack-397e0d1368d8f6077cb7ea59ee953b993ef3d244.zip |
Fixes #454 in a simpler way than 34a8f0c
Rather than mess with the environment, have espresso install into the
right directory (prefix/bin).
-rw-r--r-- | var/spack/repos/builtin/packages/espresso/package.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/espresso/package.py b/var/spack/repos/builtin/packages/espresso/package.py index 59f362ab46..167bb38e38 100644 --- a/var/spack/repos/builtin/packages/espresso/package.py +++ b/var/spack/repos/builtin/packages/espresso/package.py @@ -24,7 +24,7 @@ class Espresso(Package): depends_on('fftw~mpi', when='~mpi') depends_on('fftw+mpi', when='+mpi') depends_on('scalapack', when='+scalapack+mpi') # TODO : + mpi needed to avoid false dependencies installation - + def check_variants(self, spec): error = 'you cannot ask for \'+{variant}\' when \'+mpi\' is not active' if '+scalapack' in spec and '~mpi' in spec: @@ -32,14 +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) - options = ['-prefix=%s' % prefix] + options = ['-prefix=%s' % prefix.bin] if '+mpi' in spec: options.append('--enable-parallel') |