summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSinan <sbulutw@gmail.com>2018-12-30 08:15:08 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2018-12-30 08:15:08 -0800
commit70c5088a4c91f4313cd9390e54044502eaea5991 (patch)
treece2d36c974a7baeeaf2774a7bd0cc79f89dd1240 /var
parent309f70758bed927f4a1335e8003887738014b76e (diff)
downloadspack-70c5088a4c91f4313cd9390e54044502eaea5991.tar.gz
spack-70c5088a4c91f4313cd9390e54044502eaea5991.tar.bz2
spack-70c5088a4c91f4313cd9390e54044502eaea5991.tar.xz
spack-70c5088a4c91f4313cd9390e54044502eaea5991.zip
xgboost: make sure "libxgboost.so" is provided under prefix/lib (#10208)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/xgboost/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/xgboost/package.py b/var/spack/repos/builtin/packages/xgboost/package.py
index 011a3fb257..ef8b605324 100644
--- a/var/spack/repos/builtin/packages/xgboost/package.py
+++ b/var/spack/repos/builtin/packages/xgboost/package.py
@@ -20,3 +20,10 @@ class Xgboost(CMakePackage, CudaPackage):
return [
'-DUSE_CUDA={0}'.format('YES' if '+cuda' in self.spec else 'NO')
]
+
+ def install(self, spec, prefix):
+ install_tree(str(self.stage.source_path), prefix)
+ # create a bin directory for executable "xgboost" which is possibly
+ # used in functional testing of the compilation target "libxgboost"
+ mkdirp(prefix.bin)
+ install('xgboost', prefix.bin)