summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Oxberry <oxberry1@llnl.gov>2016-03-31 17:11:57 -0700
committerGeoffrey Oxberry <oxberry1@llnl.gov>2016-04-01 18:26:25 -0700
commit71ffe2f1c40edaa311a8b7d25d87d2c3ca25388f (patch)
tree184c51dc8d71856e023a1aeda114e234fdfce1a1
parentf5a77d39580d215f8d4948b2cbe6c8d47d4fd514 (diff)
downloadspack-71ffe2f1c40edaa311a8b7d25d87d2c3ca25388f.tar.gz
spack-71ffe2f1c40edaa311a8b7d25d87d2c3ca25388f.tar.bz2
spack-71ffe2f1c40edaa311a8b7d25d87d2c3ca25388f.tar.xz
spack-71ffe2f1c40edaa311a8b7d25d87d2c3ca25388f.zip
mumps: install mpiseq headers for '~mpi'
Prior to this commit, spack installs a library called `libmpiseq` into `spec['mumps'].prefix.lib` when it builds MUMPS without MPI. However, it does not also install the headers corresponding to this library, so it is impossible to compile source files that depend on function calls implemented in this library. This commit fixes this problem by installing these headers, which are needed by packages (e.g., IPOPT) that depend on these headers.
-rw-r--r--var/spack/repos/builtin/packages/mumps/package.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/mumps/package.py b/var/spack/repos/builtin/packages/mumps/package.py
index 26440ab7c8..025d86ebdc 100644
--- a/var/spack/repos/builtin/packages/mumps/package.py
+++ b/var/spack/repos/builtin/packages/mumps/package.py
@@ -1,5 +1,5 @@
from spack import *
-import os, sys
+import os, sys, glob
class Mumps(Package):
"""MUMPS: a MUltifrontal Massively Parallel sparse direct Solver"""
@@ -164,10 +164,13 @@ class Mumps(Package):
install_tree('lib', prefix.lib)
install_tree('include', prefix.include)
- if '~mpi' in spec:
+
+ if '~mpi' in spec:
lib_dsuffix = '.dylib' if sys.platform == 'darwin' else '.so'
lib_suffix = lib_dsuffix if '+shared' in spec else '.a'
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: use something like numdiff to compare blessed output with the current