Skip to content

Commit

Permalink
spack fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
webisu committed Aug 12, 2024
1 parent 6480d3b commit c391ca5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,12 @@ def url_for_version(self, version):
variant("openjpeg", default=False, description="Enable OpenJPEG", when="@:3.1")
variant("enable_docs", default=False, description="Build doxygen documentation", when="@3.4.0:")

conflicts("+netcdf3", when="+netcdf4")
conflicts("+openmp", when="%apple-clang")

depends_on("wget", type=("build"), when="@:3.1 +netcdf4")
depends_on("wget", type=("build"), when="@:3.1 +netcdf")
depends_on("[email protected]:", when="@develop +ipolates")
depends_on("[email protected]:", when="@3.2: +aec")
depends_on("netcdf-c", when="@3.2: +netcdf4")
depends_on("netcdf-c", when="@3.2: +netcdf")
depends_on("jasper@:2", when="@3.2: +jasper")
depends_on("zlib-api", when="+png")
depends_on("libpng", when="+png")
Expand Down Expand Up @@ -217,7 +216,7 @@ def setup_build_environment(self, env):

def build(self, pkg, spec, prefix):
# Get source files for netCDF4 builds
if self.spec.satisfies("+netcdf4"):
if self.spec.satisfies("+netcdf"):
with working_dir(self.build_directory):
os.system(
"wget https://downloads.unidata.ucar.edu/netcdf-c/4.8.1/netcdf-c-4.8.1.tar.gz"
Expand Down

0 comments on commit c391ca5

Please sign in to comment.