Skip to content

Add a mechanism to exclude packages from spack yaml/shell#366

Merged
xylar merged 2 commits into
E3SM-Project:mainfrom
xylar:fix-cmake-for-trilinos
Mar 22, 2026
Merged

Add a mechanism to exclude packages from spack yaml/shell#366
xylar merged 2 commits into
E3SM-Project:mainfrom
xylar:fix-cmake-for-trilinos

Conversation

@xylar
Copy link
Copy Markdown
Collaborator

@xylar xylar commented Mar 21, 2026

The new interface is exclude_packages. In deploy config/runtime it lives at spack.exclude_packages; in Python it is exclude_packages=[...]. Examples:

  • exclude_packages: [cmake] makes the machine cmake external disappear so Spack can build the requested CMake.
  • exclude_packages: [hdf5_netcdf] or exclude_packages: [e3sm_hdf5_netcdf] replaces the old bundle-style toggle in a clearer way.
  • The legacy 1e3sm_hdf5_netcdf1 behavior is still supported and remains backward compatible.

Checklist

  • User's Guide has been updated if needed
  • Developer's Guide has been updated if needed
  • Documentation builds cleanly and changes look as expected
  • Tests pass and new features are covered by tests
  • Testing comment, if appropriate, in the PR documents testing used to verify the changes

xylar added 2 commits March 21, 2026 16:12
The new interface is `exclude_packages`. In deploy config/runtime it lives at `spack.exclude_packages`; in Python it is `exclude_packages=[...]`. Examples:

* `exclude_packages: [cmake]` makes the machine cmake external disappear so Spack can build the requested CMake.
* `exclude_packages: [hdf5_netcdf]` or `exclude_packages: [e3sm_hdf5_netcdf]` replaces the old bundle-style toggle in a clearer way.
* The legacy 1e3sm_hdf5_netcdf1 behavior is still supported and remains backward compatible.
@xylar xylar force-pushed the fix-cmake-for-trilinos branch from dbf88d2 to c03a054 Compare March 21, 2026 15:47
@xylar
Copy link
Copy Markdown
Collaborator Author

xylar commented Mar 22, 2026

Testing

I was able to use this capability to exclude the cmake system module on Chrysalis, where it is too low to support Albany in Compass in MPAS-Dev/compass#944.

@xylar xylar merged commit 02de94e into E3SM-Project:main Mar 22, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant