diff --git a/lib/spack/spack/directives.py b/lib/spack/spack/directives.py index 2f152f813d9..08f6ec9ba95 100644 --- a/lib/spack/spack/directives.py +++ b/lib/spack/spack/directives.py @@ -475,8 +475,6 @@ def provides(*specs: SpecType, when: WhenType = None): """ def _execute_provides(pkg: Type[spack.package_base.PackageBase]): - import spack.parser # Avoid circular dependency - when_spec = _make_when_spec(when) if not when_spec: return