From 381bedf3693bbd228915c28fc47d73dbd60af1cd Mon Sep 17 00:00:00 2001 From: Jared Popelar Date: Thu, 17 Nov 2022 11:40:53 -0700 Subject: Hdf5 package: build on Windows (#31141) * Enable hdf5 build (including +mpi) on Windows * This includes updates to hdf5 dependencies openssl (minor edit) and bzip2 (more-extensive edits) * Add binary-based installation of msmpi (this is currently the only supported MPI implementation in Spack for Windows). Note that this does not install to the Spack-specified prefix. This implementation will be replaced with a source-based implementation Co-authored-by: John Parent --- lib/spack/docs/getting_started.rst | 2 ++ lib/spack/spack/spec.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/docs/getting_started.rst b/lib/spack/docs/getting_started.rst index 1bf99e09b3..0c30c9a694 100644 --- a/lib/spack/docs/getting_started.rst +++ b/lib/spack/docs/getting_started.rst @@ -1704,9 +1704,11 @@ dependencies or incompatible build tools like autoconf. Here are several packages known to work on Windows: * abseil-cpp +* bzip2 * clingo * cpuinfo * cmake +* hdf5 * glm * nasm * netlib-lapack (requires Intel Fortran) diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index 401be97858..5c688d916f 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -1089,7 +1089,7 @@ def _libs_default_handler(descriptor, spec, cls): home = getattr(spec.package, "home") # Avoid double 'lib' for packages whose names already start with lib - if not name.startswith("lib"): + if not name.startswith("lib") and not spec.satisfies("platform=windows"): name = "lib" + name # If '+shared' search only for shared library; if '~shared' search only for -- cgit v1.2.3-70-g09d2