From f66e7aea940cdb100a1db9e5701c6241021b43cb Mon Sep 17 00:00:00 2001 From: "Nichols A. Romero" Date: Tue, 29 Mar 2022 15:02:40 -0500 Subject: [PATCH] Support DASK backend in XARRAY. (#29726) * Support DASK backend in XARRAY. * Create XARRAY parallel variant with correct py-dask dependency. --- var/spack/repos/builtin/packages/py-xarray/package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/var/spack/repos/builtin/packages/py-xarray/package.py b/var/spack/repos/builtin/packages/py-xarray/package.py index f984cb0694..a8bc0d1753 100644 --- a/var/spack/repos/builtin/packages/py-xarray/package.py +++ b/var/spack/repos/builtin/packages/py-xarray/package.py @@ -29,6 +29,7 @@ class PyXarray(PythonPackage): version('0.9.1', sha256='89772ed0e23f0e71c3fb8323746374999ecbe79c113e3fadc7ae6374e6dc0525') variant('io', default=False, description='Build io backends') + variant('parallel', default=False, description='Build parallel backend') depends_on('python@2.7:2.8,3.5:', when='@0.11:', type=('build', 'run')) depends_on('python@3.5:', when='@0.12', type=('build', 'run')) @@ -63,3 +64,4 @@ class PyXarray(PythonPackage): depends_on('py-rasterio', when='+io', type=('build', 'run')) depends_on('py-cfgrib', when='+io', type=('build', 'run')) depends_on('py-pooch', when='+io', type=('build', 'run')) + depends_on('py-dask+array+dataframe+distributed+diagnostics+delayed', when='+parallel', type=('build', 'run'))