From 61f5d85525962b551e0a07bdbb79597bdb9db1e6 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Thu, 17 Nov 2022 08:38:49 +0100 Subject: [PATCH] Python: fix bug detection, trying to access self (#33955) Typo introduced in #33847 --- var/spack/repos/builtin/packages/python/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"