netcdf: fix up language dependencies (#50184)

This commit is contained in:
Sergey Kosukhin 2025-04-28 09:14:39 +02:00 committed by GitHub
parent 742d313ba8
commit 8d4ea9dbd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -138,8 +138,7 @@ class NetcdfC(CMakePackage, AutotoolsPackage):
variant("blosc", default=True, description="Enable Blosc compression plugin")
variant("zstd", default=True, description="Enable Zstandard compression plugin")
depends_on("c", type="build") # generated
depends_on("cxx", type="build") # generated
depends_on("c", type="build")
with when("build_system=cmake"):
# Based on the versions required by the root CMakeLists.txt:

View File

@ -37,8 +37,8 @@ class NetcdfFortran(AutotoolsPackage):
variant("shared", default=True, description="Enable shared library")
variant("doc", default=False, description="Enable building docs")
depends_on("c", type="build") # generated
depends_on("fortran", type="build") # generated
depends_on("c", type="build")
depends_on("fortran", type="build")
depends_on("netcdf-c")
depends_on("netcdf-c@4.7.4:", when="@4.5.3:") # nc_def_var_szip required

View File

@ -27,6 +27,7 @@ class PyNetcdf4(PythonPackage):
variant("mpi", default=True, description="Parallel IO support")
depends_on("c", type="build")
depends_on("python", 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")