summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)