PMIx: enable python bindings (#34107)

This commit is contained in:
Sajid Ali 2022-11-30 08:55:24 -06:00 committed by GitHub
parent 43d93f7773
commit 7423f52cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,8 @@ class Pmix(AutotoolsPackage):
description="allow a PMIx server to request services from " "a system-level REST server",
)
variant("python", default=False, when="@4.1.2:", description="Enable python bindigs")
variant("docs", default=False, description="Build manpages")
depends_on("m4", type="build", when="@master")
@ -83,6 +85,8 @@ class Pmix(AutotoolsPackage):
depends_on("hwloc@1.11:1,2:", when="@3:")
depends_on("curl", when="+restful")
depends_on("jansson@2.11:", when="+restful")
depends_on("python", when="+python")
depends_on("py-cython", when="+python")
def autoreconf(self, spec, prefix):
"""Only needed when building from git checkout"""
@ -101,6 +105,8 @@ def configure_args(self):
config_args.append("--with-libevent=" + spec["libevent"].prefix)
config_args.append("--with-hwloc=" + spec["hwloc"].prefix)
config_args.extend(self.enable_or_disable("python-bindings", variant="python"))
config_args.extend(
self.enable_or_disable(
"pmi-backward-compatibility", variant="pmi_backwards_compatibility"