directives.py: remove redundant import (#47965)

This commit is contained in:
Harmen Stoppels 2024-12-06 19:18:12 +01:00 committed by GitHub
parent 94bd7b9afb
commit 5c88e035f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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