spack/var/spack/repos/builtin/packages/py-cdo/package.py
Adam J. Stewart 86d2399c76
Remove deprecated versions and packages (#37895)
This PR removes deprecated versions for all packages that I'm maintaining. In future Spack releases, I'm planning to do this on a much larger scale, but we can hold off until we have better reproducibility.

I'm hoping that this will improve the maintainability of these packages. If any other maintainers of these recipes would like to retain any of these deprecated versions, or add new versions, speak now or forever hold your peace 😄 

---------

Co-authored-by: adamjstewart <adamjstewart@users.noreply.github.com>
2023-06-30 12:29:45 -07:00

29 lines
917 B
Python

# Copyright 2013-2023 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.package import *
class PyCdo(PythonPackage):
"""The cdo package provides an interface to the Climate Data
Operators from Python."""
pypi = "cdo/cdo-1.3.2.tar.gz"
maintainers("Try2Code", "skosukhin")
version("1.5.6", sha256="fec1a75382f01b3c9c368e8f143d98b12323e06975663f87d9b60c739ae1d335")
depends_on("python@2.7:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("cdo+netcdf", type="run")
depends_on("py-netcdf4", type=("build", "run"))
depends_on("py-xarray", type=("build", "run"))
depends_on("py-six", type=("build", "run"))
def setup_run_environment(self, env):
env.set("CDO", self.spec["cdo"].prefix.bin.cdo)