Re-add documentation for variant preferences
This commit is contained in:
parent
bd91dd9d6d
commit
480fe9cb9a
@ -142,8 +142,9 @@ Here's an example packages.yaml file that sets preferred packages:
|
|||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
dyninst:
|
opencv:
|
||||||
compiler: [gcc@4.9]
|
compiler: [gcc@4.9]
|
||||||
|
variants: +debug
|
||||||
gperftools:
|
gperftools:
|
||||||
version: [2.2, 2.4, 2.3]
|
version: [2.2, 2.4, 2.3]
|
||||||
all:
|
all:
|
||||||
@ -153,17 +154,17 @@ Here's an example packages.yaml file that sets preferred packages:
|
|||||||
|
|
||||||
|
|
||||||
At a high level, this example is specifying how packages should be
|
At a high level, this example is specifying how packages should be
|
||||||
concretized. The dyninst package should prefer using gcc 4.9.
|
concretized. The opencv package should prefer using gcc 4.9 and
|
||||||
The gperftools package should prefer version
|
be built with debug options. The gperftools package should prefer version
|
||||||
2.2 over 2.4. Every package on the system should prefer mvapich for
|
2.2 over 2.4. Every package on the system should prefer mvapich for
|
||||||
its MPI and gcc 4.4.7 (except for Dyninst, which overrides this by preferring gcc 4.9).
|
its MPI and gcc 4.4.7 (except for opencv, which overrides this by preferring gcc 4.9).
|
||||||
These options are used to fill in implicit defaults. Any of them can be overwritten
|
These options are used to fill in implicit defaults. Any of them can be overwritten
|
||||||
on the command line if explicitly requested.
|
on the command line if explicitly requested.
|
||||||
|
|
||||||
Each packages.yaml file begins with the string ``packages:`` and
|
Each packages.yaml file begins with the string ``packages:`` and
|
||||||
package names are specified on the next level. The special string ``all``
|
package names are specified on the next level. The special string ``all``
|
||||||
applies settings to each package. Underneath each package name is
|
applies settings to each package. Underneath each package name is
|
||||||
one or more components: ``compiler``, ``version``,
|
one or more components: ``compiler``, ``variants``, ``version``,
|
||||||
or ``providers``. Each component has an ordered list of spec
|
or ``providers``. Each component has an ordered list of spec
|
||||||
``constraints``, with earlier entries in the list being preferred over
|
``constraints``, with earlier entries in the list being preferred over
|
||||||
later entries.
|
later entries.
|
||||||
|
Loading…
Reference in New Issue
Block a user