-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove h5py from spack and from tests #192
Conversation
Singularity-eos builds with a fresh spack checkout %oneApi w/ the following changes to package.py:
|
Thanks, @annapiegra ! @dholladay00 @mauneyc-LANL does this satisfy? |
Does not including h5py fix any of the issues we see with hdf5 and mpi @Yurlungur @mauneyc-LANL ? I'm curious if we could further simplify the spackage? |
I don't think this simplifies |
@mauneyc-LANL I switched to |
FetchContent_Declare(goldfiles | ||
URL ${SINGULARITY_GOLDFILE_URL} | ||
URL_HASH SHA256=${SINGULARITY_GOLDFILE_HASH} | ||
SOURCE_DIR goldfiles | ||
) | ||
FetchContent_MakeAvailable(goldfiles) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With cmake@>=3.24
, you'll get this warning blurb.
[cmake] CMake Warning (dev) at /usr/share/cmake/Modules/FetchContent.cmake:1267 (message):
[cmake] The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
[cmake] not set. The policy's OLD behavior will be used. When using a URL
[cmake] download, the timestamps of extracted files should preferably be that of
[cmake] the time of extraction, otherwise code that depends on the extracted
[cmake] contents might not be rebuilt if the URL changes. The OLD behavior
[cmake] preserves the timestamps from the archive instead, but this is usually not
[cmake] what you want. Update your project to the NEW behavior or specify the
[cmake] DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
[cmake] robustness issue.
See https://cmake.org/cmake/help/latest/policy/CMP0135.html
Not breaking, and for this case I think is over-doing it. But if you want to avoid terminal bloat, you could add
# Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP in CMake 3.24:
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
cmake_policy(SET CMP0135 NEW)
endif()
PR Summary
As requested by @mauneyc-LANL @dholladay00 and motivated by issues @annapiegra is having with oneapi, this PR does the following:
py-h5py
from spack and cmake dependencies.PR Checklist
make format
command after configuring withcmake
.