summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pavel <rspavel@gmail.com>2018-03-07 16:46:53 -0700
committerbecker33 <becker33@llnl.gov>2018-03-07 15:46:53 -0800
commit1cf451b62c17d35720db0728a376bc4cd75fac07 (patch)
tree77a0cf942a8523a9ee99f22d3ebf7dcce4a6267f
parent13e6fc730da6c0ace31e846af4fdb6213dc3c0e8 (diff)
downloadspack-1cf451b62c17d35720db0728a376bc4cd75fac07.tar.gz
spack-1cf451b62c17d35720db0728a376bc4cd75fac07.tar.bz2
spack-1cf451b62c17d35720db0728a376bc4cd75fac07.tar.xz
spack-1cf451b62c17d35720db0728a376bc4cd75fac07.zip
Generalized ExaSP2 Install (#7422)
Generalized ExaSP2 Install to use glob due to changes in naming convention between previous release and current development branch
-rw-r--r--var/spack/repos/builtin/packages/exasp2/package.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/exasp2/package.py b/var/spack/repos/builtin/packages/exasp2/package.py
index 7bb69d461d..7c7b414e8b 100644
--- a/var/spack/repos/builtin/packages/exasp2/package.py
+++ b/var/spack/repos/builtin/packages/exasp2/package.py
@@ -23,6 +23,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
+import glob
class Exasp2(MakefilePackage):
@@ -88,9 +89,7 @@ class Exasp2(MakefilePackage):
def install(self, spec, prefix):
mkdir(prefix.bin)
mkdir(prefix.doc)
- if '+mpi' in self.spec:
- install('bin/ExaSP2-parallel', prefix.bin)
- else:
- install('bin/ExaSP2-serial', prefix.bin)
+ for files in glob.glob('bin/ExaSP2-*'):
+ install(files, prefix.bin)
install('LICENSE.md', prefix.doc)
install('README.md', prefix.doc)