python: Fix post-install script without C++ compiler (#14481)

This commit is contained in:
Michael Kuhn 2020-01-14 03:29:02 +01:00 committed by Adam J. Stewart
parent 5b1297378c
commit 8660b0b5b8

View file

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