adios: use f-strings (#40436)

This commit is contained in:
Alec Scott 2023-10-11 10:47:42 -07:00 committed by GitHub
parent 5d582a5e48
commit 3923b81d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ def validate(self, spec):
def with_or_without_hdf5(self, activated):
if activated:
return "--with-phdf5={0}".format(self.spec["hdf5"].prefix)
return f"--with-phdf5={self.spec['hdf5'].prefix}"
return "--without-phdf5"
@ -134,7 +134,7 @@ def configure_args(self):
extra_args = [
# required, otherwise building its python bindings will fail
"CFLAGS={0}".format(self.compiler.cc_pic_flag)
f"CFLAGS={self.compiler.cc_pic_flag}"
]
extra_args += self.enable_or_disable("shared")
@ -148,7 +148,7 @@ def configure_args(self):
extra_args += self.with_or_without("infiniband")
if "+zlib" in spec:
extra_args.append("--with-zlib={0}".format(spec["zlib-api"].prefix))
extra_args.append(f"--with-zlib={spec['zlib-api'].prefix}")
else:
extra_args.append("--without-zlib")