Install libsharp header files to include/libsharp. (#16847)

* Install libsharp header files to include/libsharp.

* Fix flake8 issues.

* Simplify specification of install path.
This commit is contained in:
健美猞猁 2020-05-31 12:09:27 +08:00 committed by GitHub
parent 66b8b5ab37
commit 3896a401db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,5 +40,7 @@ def configure_args(self):
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)