Skip to content

Commit

Permalink
Simplify var/spack/repos/jcsda-emc-bundles/packages/base-env/package.py
Browse files Browse the repository at this point in the history
  • Loading branch information
climbfuji committed Dec 2, 2022
1 parent 190117f commit c33b8ec
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions var/spack/repos/jcsda-emc-bundles/packages/base-env/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,16 @@ class BaseEnv(BundlePackage):
depends_on("curl", type="run")

# I/O
depends_on("zlib+shared", type="run", when="+shared")
depends_on("zlib~shared", type="run", when="~shared")
depends_on("hdf5+hl+mpi+shared", type="run", when="+shared")
depends_on("hdf5+hl+mpi~shared", type="run", when="~shared")
depends_on("netcdf-c~parallel-netcdf+v2+mpi+shared", type="run", when="+shared")
depends_on("netcdf-c~parallel-netcdf+v2+mpi~shared", type="run", when="~shared")
depends_on("netcdf-fortran+shared", type="run", when="+shared")
depends_on("netcdf-fortran~shared", type="run", when="~shared")
depends_on("parallel-netcdf+shared", type="run", when="+shared")
depends_on("parallel-netcdf~shared", type="run", when="~shared")
depends_on("parallelio+fortran~pnetcdf+shared", type="run", when="+shared")
depends_on("parallelio+fortran~pnetcdf~shared", type="run", when="~shared")
with when("+shared"):
shared_variant = "+shared"
with when("~shared"):
shared_variant = "~shared"
depends_on("zlib{}".format(shared_variant), type="run", when="{}".format(shared_variant))
depends_on("hdf5{}".format(shared_variant), type="run", when="{}".format(shared_variant))
depends_on("netcdf-c{}".format(shared_variant), type="run", when="{}".format(shared_variant))
depends_on("netcdf-fortran{}".format(shared_variant), type="run", when="{}".format(shared_variant))
depends_on("parallel-netcdf{}".format(shared_variant), type="run", when="{}".format(shared_variant))
depends_on("parallelio{}".format(shared_variant), type="run", when="{}".format(shared_variant))
depends_on("nccmp", type="run")

# Python
Expand Down

0 comments on commit c33b8ec

Please sign in to comment.