PMIx: enable python bindings (#34107)
This commit is contained in:
parent
43d93f7773
commit
7423f52cd3
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user