summaryrefslogtreecommitdiff
path: root/lib/spack/spack/spec.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/spec.py')
-rw-r--r--lib/spack/spack/spec.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index 609b20e238..7a69dad881 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -76,30 +76,30 @@ thing. Spack uses ~variant in directory names and in the canonical form of
specs to avoid ambiguity. Both are provided because ~ can cause shell
expansion when it is the first character in an id typed on the command line.
"""
-import sys
import collections
import itertools
import operator
import os
import re
+import sys
-import six
import ruamel.yaml as yaml
+import six
import llnl.util.filesystem as fs
import llnl.util.lang as lang
-import llnl.util.tty.color as clr
import llnl.util.tty as tty
+import llnl.util.tty.color as clr
-import spack.paths
import spack.architecture
import spack.compiler
-import spack.compilers as compilers
+import spack.compilers
import spack.config
import spack.dependency as dp
import spack.error
import spack.hash_types as ht
import spack.parse
+import spack.paths
import spack.provider_index
import spack.repo
import spack.solver
@@ -115,7 +115,6 @@ import spack.util.string
import spack.variant as vt
import spack.version as vn
-
if sys.version_info >= (3, 3):
from collections.abc import Mapping # novm
else:
@@ -2967,7 +2966,7 @@ class Spec(object):
# validate compiler in addition to the package name.
if spec.compiler:
- if not compilers.supported(spec.compiler):
+ if not spack.compilers.supported(spec.compiler):
raise UnsupportedCompilerError(spec.compiler.name)
# Ensure correctness of variants (if the spec is not virtual)