Rather than mess with the environment, have espresso install into the right directory (prefix/bin).
This commit is contained in:
parent
360994b638
commit
397e0d1368
@ -32,14 +32,10 @@ def check_variants(self, spec):
|
|||||||
if '+elpa' in spec and ('~mpi' in spec or '~scalapack' in spec):
|
if '+elpa' in spec and ('~mpi' in spec or '~scalapack' in spec):
|
||||||
raise RuntimeError(error.format(variant='elpa'))
|
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):
|
def install(self, spec, prefix):
|
||||||
self.check_variants(spec)
|
self.check_variants(spec)
|
||||||
|
|
||||||
options = ['-prefix=%s' % prefix]
|
options = ['-prefix=%s' % prefix.bin]
|
||||||
|
|
||||||
if '+mpi' in spec:
|
if '+mpi' in spec:
|
||||||
options.append('--enable-parallel')
|
options.append('--enable-parallel')
|
||||||
|
Loading…
Reference in New Issue
Block a user