re-add removed methods with deprecation warning
This commit is contained in:
@@ -551,6 +551,18 @@ def concrete(self):
|
||||
"""True if the spec is concrete, False otherwise"""
|
||||
return self.platform and self.os and self.target and self.target_concrete
|
||||
|
||||
def concretize(self, tests: Union[bool, Iterable[str]] = False) -> None:
|
||||
self._dup(self.concretized(tests=tests))
|
||||
|
||||
def concretized(self, tests: Union[bool, Iterable[str]] = False) -> "spack.spec.Spec":
|
||||
import spack.concretize
|
||||
|
||||
msg = "`Spec.concretize` and `Spec.concretized` methods are deprecated and will be "
|
||||
msg += "removed in version 1.0.0. Use `spack.concretize.concretized` instead."
|
||||
tty.warn(msg)
|
||||
|
||||
return spack.concretize.concretized(self)
|
||||
|
||||
@property
|
||||
def target_concrete(self):
|
||||
"""True if the target is not a range or list."""
|
||||
|
Reference in New Issue
Block a user