Constrain abstract specs rather than concatenating strings in the "when" context manager (#26700)

Using the Spec.constrain method doesn't work since it might
trigger a repository lookup which could break our directives
and triggers a circular import error.

To fix that we introduce a function to merge abstract anonymous
specs, based only on package names, which does not perform any
lookup in the repository.
This commit is contained in:
Massimiliano Culpo
2021-10-14 12:33:10 +02:00
committed by GitHub
parent 2c3ea68dd1
commit 949094544e
7 changed files with 77 additions and 12 deletions

View File

@@ -2824,7 +2824,7 @@ is equivalent to:
depends_on('elpa+openmp', when='+openmp+elpa')
Constraints from nested context managers are also added together, but they are rarely
Constraints from nested context managers are also combined together, but they are rarely
needed or recommended.
.. _install-method: