summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authora-saitoh-fj <63334055+a-saitoh-fj@users.noreply.github.com>2021-02-23 01:39:48 +0900
committerGitHub <noreply@github.com>2021-02-22 10:39:48 -0600
commit920a65a76538adda64d9a1b63d348b6ea7cea48f (patch)
tree14e798ad06528fb5a3a48919757c14ae3beb0cfb
parentf6b0f52fb296a8907f66b975e3c658b08258e86e (diff)
downloadspack-920a65a76538adda64d9a1b63d348b6ea7cea48f.tar.gz
spack-920a65a76538adda64d9a1b63d348b6ea7cea48f.tar.bz2
spack-920a65a76538adda64d9a1b63d348b6ea7cea48f.tar.xz
spack-920a65a76538adda64d9a1b63d348b6ea7cea48f.zip
New package: py-dask-xgboost (#21583)
* New package: py-dask-xgboost * py-dask-xgboost: Fixed what was pointed out
-rw-r--r--var/spack/repos/builtin/packages/py-dask-xgboost/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-dask-xgboost/package.py b/var/spack/repos/builtin/packages/py-dask-xgboost/package.py
new file mode 100644
index 0000000000..4bbe21486f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-dask-xgboost/package.py
@@ -0,0 +1,25 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class PyDaskXgboost(PythonPackage):
+ """Distributed training with XGBoost and Dask.distributed."""
+
+ homepage = "https://github.com/dask/dask-xgboost/"
+ pypi = "dask-xgboost/dask-xgboost-0.1.11.tar.gz"
+
+ version('0.1.11', sha256='3fbe1bf4344dc74edfbe9f928c7e3e6acc26dc57cefd8da8ae56a15469c6941c')
+
+ variant('sparse', default=False, description='Add sparse support')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-xgboost@:0.90', type=('build', 'run'))
+ depends_on('py-dask', type=('build', 'run'))
+ depends_on('py-distributed@1.15.2:', type=('build', 'run'))
+
+ depends_on('py-sparse', type=('build', 'run'), when='+sparse')
+ depends_on('py-scipy', type=('build', 'run'), when='+sparse')