diff options
author | Jimmy Tang <jtang@voysis.com> | 2019-08-30 19:11:06 +0100 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-08-30 11:11:06 -0700 |
commit | 517846003f4fa64b9269c6ae833817669f17772f (patch) | |
tree | 3c67074c88c98f76064ed768765780b1f66fe150 /var | |
parent | f635a376bdebb09033967f133047de5886ec443f (diff) | |
download | spack-517846003f4fa64b9269c6ae833817669f17772f.tar.gz spack-517846003f4fa64b9269c6ae833817669f17772f.tar.bz2 spack-517846003f4fa64b9269c6ae833817669f17772f.tar.xz spack-517846003f4fa64b9269c6ae833817669f17772f.zip |
kaldi package: fix installation of libraries (#12177)
* The install for kaldi was copying library symlinks but not the
actual library files, this makes sure to copy the libraries
* All libraries are installed to 'prefix.lib' (the original
library directory structure is no longer maintained)
* The install step for executables did not account for the different
dynamic library suffix on MacOS
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/kaldi/package.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/kaldi/package.py b/var/spack/repos/builtin/packages/kaldi/package.py index bc88598cda..461929b228 100644 --- a/var/spack/repos/builtin/packages/kaldi/package.py +++ b/var/spack/repos/builtin/packages/kaldi/package.py @@ -76,16 +76,22 @@ class Kaldi(Package): # Does not use Autotools mkdirp(prefix.bin) for root, dirs, files in os.walk('.'): for name in files: - if name.endswith(".so") or name.endswith(".cc") \ + if name.endswith("." + dso_suffix) \ + or name.endswith(".cc") \ or name.endswith(".pptx"): continue - if "configure" is name: + if "configure" == name: continue if os.access(join(root, name), os.X_OK): install(join(root, name), prefix.bin) mkdir(prefix.lib) - install_tree('lib', prefix.lib) + for root, dirs, files in os.walk('lib'): + for name in files: + if name.endswith("." + dso_suffix): + fpath = join(root, name) + src = os.readlink(fpath) + install(src, prefix.lib) for root, dirs, files in os.walk('.'): for name in files: |