summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author健美猞猁 <weijianwen@gmail.com>2020-05-31 12:09:27 +0800
committerGitHub <noreply@github.com>2020-05-30 23:09:27 -0500
commit3896a401db18e0c84984df88ce094a1a601ad743 (patch)
treebd6814fa0be96240bddab84272fdf1aca803a789
parent66b8b5ab37ed07e3bafe957dbdc23dbf3d8ad6e2 (diff)
downloadspack-3896a401db18e0c84984df88ce094a1a601ad743.tar.gz
spack-3896a401db18e0c84984df88ce094a1a601ad743.tar.bz2
spack-3896a401db18e0c84984df88ce094a1a601ad743.tar.xz
spack-3896a401db18e0c84984df88ce094a1a601ad743.zip
Install libsharp header files to include/libsharp. (#16847)
* Install libsharp header files to include/libsharp. * Fix flake8 issues. * Simplify specification of install path.
-rw-r--r--var/spack/repos/builtin/packages/libsharp/package.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/libsharp/package.py b/var/spack/repos/builtin/packages/libsharp/package.py
index c78534c6c4..aa7e5184b6 100644
--- a/var/spack/repos/builtin/packages/libsharp/package.py
+++ b/var/spack/repos/builtin/packages/libsharp/package.py
@@ -40,5 +40,7 @@ class Libsharp(AutotoolsPackage):
return args
def install(self, spec, prefix):
- install_tree('auto/include', join_path(prefix, 'include'))
- install_tree('auto/lib', join_path(prefix, 'lib'))
+ # Libsharp's only caller healpix include headers like 'libsharp/xxx.h'
+ # Install xxx.h to include/libsharp
+ install_tree('auto/include', prefix.include.libsharp)
+ install_tree('auto/lib', prefix.lib)