diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2022-07-30 15:19:18 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2022-07-31 13:29:20 -0700 |
commit | f52f6e99dbf1131886a80112b8c79dfc414afb7c (patch) | |
tree | 05cb7d64b2395922f2f24683da49f472075be12c /var/spack/repos/builtin/packages/cxx/package.py | |
parent | 549ba1ed32372c67fc57271cde3797d58b7dec6e (diff) | |
download | spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.gz spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.bz2 spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.xz spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.zip |
black: reformat entire repository with black
Diffstat (limited to 'var/spack/repos/builtin/packages/cxx/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/cxx/package.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/cxx/package.py b/var/spack/repos/builtin/packages/cxx/package.py index 318c5e3393..b9b494962b 100644 --- a/var/spack/repos/builtin/packages/cxx/package.py +++ b/var/spack/repos/builtin/packages/cxx/package.py @@ -10,7 +10,8 @@ from spack.package import * class Cxx(Package): """Virtual package for the C++ language.""" - homepage = 'https://isocpp.org/std/the-standard' + + homepage = "https://isocpp.org/std/the-standard" virtual = True def test(self): @@ -18,23 +19,23 @@ class Cxx(Package): for test in os.listdir(test_source): filepath = os.path.join(test_source, test) - exe_name = '%s.exe' % test + exe_name = "%s.exe" % test - cxx_exe = os.environ['CXX'] + cxx_exe = os.environ["CXX"] # standard options # Hack to get compiler attributes # TODO: remove this when compilers are dependencies - c_name = clang if self.spec.satisfies('llvm+clang') else self.name + c_name = clang if self.spec.satisfies("llvm+clang") else self.name c_spec = spack.spec.CompilerSpec(c_name, self.spec.version) c_cls = spack.compilers.class_for_compiler_name(c_name) - compiler = c_cls(c_spec, None, None, ['fakecc', 'fakecxx']) + compiler = c_cls(c_spec, None, None, ["fakecc", "fakecxx"]) - cxx_opts = [compiler.cxx11_flag] if 'c++11' in test else [] + cxx_opts = [compiler.cxx11_flag] if "c++11" in test else [] - cxx_opts += ['-o', exe_name, filepath] + cxx_opts += ["-o", exe_name, filepath] compiled = self.run_test(cxx_exe, options=cxx_opts, installed=True) if compiled: - expected = ['Hello world', 'YES!'] + expected = ["Hello world", "YES!"] self.run_test(exe_name, expected=expected) |