@@ -425,11 +425,12 @@ When you have an activated environment, you can edit the associated configuratio
425425 all :
426426 prefer :
427427 - " %llvm"
428- providers :
429- mpi : [ mpich, openmpi]
428+ mpi :
429+ require : mpich
430430
431+ We see if we retry that we now get what we want without getting any more specific on the command line.
431432
432- Because of the configuration scoping we discussed earlier, this overrides the default settings just for these two items.
433+ .. Because of the configuration scoping we discussed earlier, this overrides the default settings just for these two items.
433434
434435 .. literalinclude :: outputs/config/1.prefs.out
435436 :language: console
@@ -445,7 +446,7 @@ If we were working on a project that would routinely need serial HDF5, that migh
445446Instead, we'll update our config to force disable it:
446447
447448.. code-block :: yaml
448- :emphasize-lines : 12-13
449+ :emphasize-lines : 12-14
449450
450451 spack :
451452 specs : []
@@ -456,15 +457,14 @@ Instead, we'll update our config to force disable it:
456457 all :
457458 prefer :
458459 - " %llvm"
459- providers :
460- mpi : [ mpich, openmpi]
460+ mpi :
461+ require : mpich
461462 hdf5 :
462463 require :
463464 - spec : " ~mpi"
464465
465466
466- Note that defining ``hdf5 `` overrides everything under ``all ``, so the Clang preference must be reintroduced.
467- Now hdf5 will concretize without an MPI dependency by default.
467+ Note if you define ``require `` under ``all `` and ``hdf5 ``, you must reintroduce any requirements in ``hdf5 ``.
468468
469469.. literalinclude :: outputs/config/3.prefs.out
470470 :language: console
@@ -485,7 +485,7 @@ On these systems, we have a pre-installed curl.
485485Let's tell Spack about this package and where it can be found:
486486
487487.. code-block :: yaml
488- :emphasize-lines : 16-20
488+ :emphasize-lines : 15-19
489489
490490 spack :
491491 specs : []
@@ -496,8 +496,8 @@ Let's tell Spack about this package and where it can be found:
496496 all :
497497 prefer :
498498 - " %llvm"
499- providers :
500- mpi : [ mpich, openmpi]
499+ mpi :
500+ require : mpich
501501 hdf5 :
502502 require :
503503 - spec : " ~mpi"
@@ -544,8 +544,8 @@ While we're editing the ``spack.yaml`` file, make sure to configure HDF5 to be a
544544 all :
545545 prefer :
546546 - " %llvm"
547- providers :
548- mpi : [ mpich, openmpi]
547+ mpi :
548+ require : mpich
549549 curl :
550550 externals :
551551 - spec : curl@7.81.0 %gcc@11.4.0
0 commit comments