spack/var/spack/repos/builtin/packages/py-dask-ml/xgboost_dependency.patch
Tomoki, Karatsu f6b0f52fb2
py-dask-ml: add new package. (#21831)
* py-dask-ml: add new package.

* Modified to PythonPackage.

* Remove test-related dependencies.

* Changed to execute docs build after install.
2021-02-22 10:32:39 -06:00

24 lines
727 B
Diff

diff --git a/dask_ml/xgboost.py b/dask_ml/xgboost.py
index 86e841db..70551df7 100644
--- a/dask_ml/xgboost.py
+++ b/dask_ml/xgboost.py
@@ -4,4 +4,4 @@ This may be used for training an XGBoost model on a cluster. XGBoost
will be setup in distributed mode alongside your existing
``dask.distributed`` cluster.
"""
-from dask_xgboost import * # noqa
+from xgboost import * # noqa
diff --git a/setup.py b/setup.py
index 857f6911..fb280973 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ test_requires = [
"pytest-mock",
]
dev_requires = doc_requires + test_requires
-xgboost_requires = ["dask-xgboost", "xgboost"]
+xgboost_requires = ["xgboost[dask]"]
complete_requires = xgboost_requires
extras_require = {