Skip to content

Commit

Permalink
test spack fix
Browse files Browse the repository at this point in the history
  • Loading branch information
webisu committed Aug 12, 2024
1 parent 9d97802 commit af81b5a
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions spack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
variant_map = {
"netcdf3": "USE_NETCDF3",
"netcdf4": "USE_NETCDF4",
"netcdf": "USE_NETCDF",
"spectral": "USE_SPECTRAL",
"mysql": "USE_MYSQL",
"udf": "USE_UDF",
Expand Down Expand Up @@ -85,10 +84,6 @@ def url_for_version(self, version):
variant(
"netcdf4", default=False, description="Link in netcdf4 library to write netcdf3/4 files"
)
variant(
"netcdf", default=False, description="Link in netcdf library to write netcdf3/4 files new"
)

variant(
"ipolates",
default=False,
Expand Down Expand Up @@ -153,16 +148,12 @@ def url_for_version(self, version):
variant("enable_docs", default=False, description="Build doxygen documentation", when="@3.4.0:")

conflicts("+netcdf3", when="+netcdf4")
conflicts("+netcdf3", when="+netcdf")
conflicts("+netcdf4", when="+netcdf")
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 @@ -241,14 +232,6 @@ def build(self, pkg, spec, prefix):
os.system(
"wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-1.12.1/src/hdf5-1.12.1.tar.gz"
)
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"
)
os.system(
"wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-1.12.1/src/hdf5-1.12.1.tar.gz"
)

make()

Expand Down

0 comments on commit af81b5a

Please sign in to comment.