From 8660b0b5b8ead9adefa4ff5a143d32901a1f40da Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Tue, 14 Jan 2020 03:29:02 +0100 Subject: [PATCH] python: Fix post-install script without C++ compiler (#14481) --- var/spack/repos/builtin/packages/python/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py index 3e18c294aa..13e26f0260 100644 --- a/var/spack/repos/builtin/packages/python/package.py +++ b/var/spack/repos/builtin/packages/python/package.py @@ -396,7 +396,8 @@ def filter_compilers(self): ] filter_file(spack_cc, self.compiler.cc, *filenames, **kwargs) - filter_file(spack_cxx, self.compiler.cxx, *filenames, **kwargs) + if spack_cxx and self.compiler.cxx: + filter_file(spack_cxx, self.compiler.cxx, *filenames, **kwargs) @run_after('install') def symlink(self):