Skip to content
Snippets Groups Projects
Commit 2fd2a540 authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Merge pull request #711 from goxberry/mumps-add-libexec

Add mpiseq headers to MUMPS installation (was: Add libexec dir to MUMPS installation)
parents 220fb068 71ffe2f1
No related branches found
No related tags found
No related merge requests found
from spack import * from spack import *
import os, sys import os, sys, glob
class Mumps(Package): class Mumps(Package):
"""MUMPS: a MUltifrontal Massively Parallel sparse direct Solver""" """MUMPS: a MUltifrontal Massively Parallel sparse direct Solver"""
...@@ -164,10 +164,13 @@ def install(self, spec, prefix): ...@@ -164,10 +164,13 @@ def install(self, spec, prefix):
install_tree('lib', prefix.lib) install_tree('lib', prefix.lib)
install_tree('include', prefix.include) install_tree('include', prefix.include)
if '~mpi' in spec:
if '~mpi' in spec:
lib_dsuffix = '.dylib' if sys.platform == 'darwin' else '.so' lib_dsuffix = '.dylib' if sys.platform == 'darwin' else '.so'
lib_suffix = lib_dsuffix if '+shared' in spec else '.a' lib_suffix = lib_dsuffix if '+shared' in spec else '.a'
install('libseq/libmpiseq%s' % lib_suffix, prefix.lib) install('libseq/libmpiseq%s' % lib_suffix, prefix.lib)
for f in glob.glob(join_path('libseq','*.h')):
install(f, prefix.include)
# FIXME: extend the tests to mpirun -np 2 (or alike) when build with MPI # FIXME: extend the tests to mpirun -np 2 (or alike) when build with MPI
# FIXME: use something like numdiff to compare blessed output with the current # FIXME: use something like numdiff to compare blessed output with the current
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment