netcdf: fix up language dependencies (#50184)
This commit is contained in:
parent
742d313ba8
commit
8d4ea9dbd3
@ -138,8 +138,7 @@ class NetcdfC(CMakePackage, AutotoolsPackage):
|
|||||||
variant("blosc", default=True, description="Enable Blosc compression plugin")
|
variant("blosc", default=True, description="Enable Blosc compression plugin")
|
||||||
variant("zstd", default=True, description="Enable Zstandard compression plugin")
|
variant("zstd", default=True, description="Enable Zstandard compression plugin")
|
||||||
|
|
||||||
depends_on("c", type="build") # generated
|
depends_on("c", type="build")
|
||||||
depends_on("cxx", type="build") # generated
|
|
||||||
|
|
||||||
with when("build_system=cmake"):
|
with when("build_system=cmake"):
|
||||||
# Based on the versions required by the root CMakeLists.txt:
|
# Based on the versions required by the root CMakeLists.txt:
|
||||||
|
@ -37,8 +37,8 @@ class NetcdfFortran(AutotoolsPackage):
|
|||||||
variant("shared", default=True, description="Enable shared library")
|
variant("shared", default=True, description="Enable shared library")
|
||||||
variant("doc", default=False, description="Enable building docs")
|
variant("doc", default=False, description="Enable building docs")
|
||||||
|
|
||||||
depends_on("c", type="build") # generated
|
depends_on("c", type="build")
|
||||||
depends_on("fortran", type="build") # generated
|
depends_on("fortran", type="build")
|
||||||
|
|
||||||
depends_on("netcdf-c")
|
depends_on("netcdf-c")
|
||||||
depends_on("netcdf-c@4.7.4:", when="@4.5.3:") # nc_def_var_szip required
|
depends_on("netcdf-c@4.7.4:", when="@4.5.3:") # nc_def_var_szip required
|
||||||
|
@ -27,6 +27,7 @@ class PyNetcdf4(PythonPackage):
|
|||||||
|
|
||||||
variant("mpi", default=True, description="Parallel IO support")
|
variant("mpi", default=True, description="Parallel IO support")
|
||||||
|
|
||||||
|
depends_on("c", type="build")
|
||||||
depends_on("python", type=("build", "link", "run"))
|
depends_on("python", type=("build", "link", "run"))
|
||||||
depends_on("python@3.8:", when="@1.7.1:", type=("build", "link", "run"))
|
depends_on("python@3.8:", when="@1.7.1:", type=("build", "link", "run"))
|
||||||
depends_on("py-cython@0.29:", when="@1.6.5:", type="build")
|
depends_on("py-cython@0.29:", when="@1.6.5:", type="build")
|
||||||
|
Loading…
Reference in New Issue
Block a user