charliecloud: disable libsquashfuse when ~squashfuse (#48317)

This commit is contained in:
Massimiliano Culpo 2025-01-02 21:45:26 +01:00 committed by GitHub
parent 1f3b4e116f
commit 880eb36a1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -157,20 +157,19 @@ def autoreconf(self, spec, prefix):
which("bash")("autogen.sh")
def configure_args(self):
args = []
py_path = self.spec["python"].command.path
args.append("--with-python={0}".format(py_path))
args = [f"--with-python={self.spec['python'].command.path}"]
if self.spec.satisfies("+docs"):
sphinx_bin = "{0}".format(self.spec["py-sphinx"].prefix.bin)
sphinx_bin = f"{self.spec['py-sphinx'].prefix.bin}"
args.append("--enable-html")
args.append("--with-sphinx-build={0}".format(sphinx_bin.join("sphinx-build")))
args.append(f"--with-sphinx-build={sphinx_bin.join('sphinx-build')}")
else:
args.append("--disable-html")
if self.spec.satisfies("+squashfuse"):
squashfuse_prefix = "{0}".format(self.spec["squashfuse"].prefix)
args.append("--with-libsquashfuse={0}".format(squashfuse_prefix))
args.append(f"--with-libsquashfuse={self.spec['squashfuse'].prefix}")
else:
args.append("--with-libsquashfuse=no")
return args