diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py index 55bbde3182..ec7a9e40aa 100644 --- a/var/spack/repos/builtin/packages/python/package.py +++ b/var/spack/repos/builtin/packages/python/package.py @@ -565,7 +565,7 @@ def determine_variants(cls, exes, version_str): variants += "~tix" # Some modules are platform-dependent - if not self.spec.satisfies("platform=windows"): + if not is_windows: try: python("-c", "import crypt", error=os.devnull) variants += "+crypt"