Generalized ExaSP2 Install (#7422)

Generalized ExaSP2 Install to use glob due to changes in naming
convention between previous release and current development branch
This commit is contained in:
Robert Pavel 2018-03-07 16:46:53 -07:00 committed by becker33
parent 13e6fc730d
commit 1cf451b62c

View file

@ -23,6 +23,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
############################################################################## ##############################################################################
from spack import * from spack import *
import glob
class Exasp2(MakefilePackage): class Exasp2(MakefilePackage):
@ -88,9 +89,7 @@ def build_targets(self):
def install(self, spec, prefix): def install(self, spec, prefix):
mkdir(prefix.bin) mkdir(prefix.bin)
mkdir(prefix.doc) mkdir(prefix.doc)
if '+mpi' in self.spec: for files in glob.glob('bin/ExaSP2-*'):
install('bin/ExaSP2-parallel', prefix.bin) install(files, prefix.bin)
else:
install('bin/ExaSP2-serial', prefix.bin)
install('LICENSE.md', prefix.doc) install('LICENSE.md', prefix.doc)
install('README.md', prefix.doc) install('README.md', prefix.doc)