summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/mpibind/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/mpibind/package.py')
-rw-r--r--var/spack/repos/builtin/packages/mpibind/package.py58
1 files changed, 26 insertions, 32 deletions
diff --git a/var/spack/repos/builtin/packages/mpibind/package.py b/var/spack/repos/builtin/packages/mpibind/package.py
index 4bdc8b7592..de2353c6dd 100644
--- a/var/spack/repos/builtin/packages/mpibind/package.py
+++ b/var/spack/repos/builtin/packages/mpibind/package.py
@@ -12,10 +12,10 @@ class Mpibind(AutotoolsPackage):
"""A memory-driven algorithm to map parallel codes
to heterogeneous architectures"""
- homepage = "https://github.com/LLNL/mpibind"
- git = "https://github.com/LLNL/mpibind.git"
+ homepage = "https://github.com/LLNL/mpibind"
+ git = "https://github.com/LLNL/mpibind.git"
- maintainers = ['eleon']
+ maintainers = ["eleon"]
# This package uses 'git describe --tags' to get the
# package version in Autotools' AC_INIT, thus
@@ -23,47 +23,41 @@ class Mpibind(AutotoolsPackage):
# Furthermore, the package can't be cached because
# AC_INIT would be missing the version argument,
# which is derived with git.
- version('master', branch='master', get_full_repo=True)
- version('0.8.0', commit='ff38b9d', no_cache=True)
- version('0.7.0', commit='3c437a9', no_cache=True)
- version('0.5.0', commit='8698f07', no_cache=True)
+ version("master", branch="master", get_full_repo=True)
+ version("0.8.0", commit="ff38b9d", no_cache=True)
+ version("0.7.0", commit="3c437a9", no_cache=True)
+ version("0.5.0", commit="8698f07", no_cache=True)
- variant('cuda', default=False,
- description='Build w/support for NVIDIA GPUs.')
- variant('rocm', default=False,
- description='Build w/support for AMD GPUs.')
- variant('flux', default=False,
- description='Build the Flux plugin.')
- variant('python', default=False,
- description='Build the Python bindings.')
+ variant("cuda", default=False, description="Build w/support for NVIDIA GPUs.")
+ variant("rocm", default=False, description="Build w/support for AMD GPUs.")
+ variant("flux", default=False, description="Build the Flux plugin.")
+ variant("python", default=False, description="Build the Python bindings.")
- depends_on('autoconf', type='build')
- depends_on('automake', type='build')
- depends_on('libtool', type='build')
- depends_on('m4', type='build')
- depends_on('pkgconfig', type='build')
+ depends_on("autoconf", type="build")
+ depends_on("automake", type="build")
+ depends_on("libtool", type="build")
+ depends_on("m4", type="build")
+ depends_on("pkgconfig", type="build")
- depends_on('hwloc@2:+libxml2', type='link')
- depends_on('hwloc@2:+cuda+nvml', type='link', when='+cuda')
- depends_on('hwloc@2.4:+rocm+opencl', type='link', when='+rocm')
- depends_on('hwloc@2:+pci', type='link',
- when=(sys.platform != 'darwin'))
+ depends_on("hwloc@2:+libxml2", type="link")
+ depends_on("hwloc@2:+cuda+nvml", type="link", when="+cuda")
+ depends_on("hwloc@2.4:+rocm+opencl", type="link", when="+rocm")
+ depends_on("hwloc@2:+pci", type="link", when=(sys.platform != "darwin"))
# flux-core >= 0.30.0 supports FLUX_SHELL_RC_PATH,
# which is needed to load the plugin into Flux
- depends_on('flux-core@0.30:', when='+flux', type='link')
+ depends_on("flux-core@0.30:", when="+flux", type="link")
- depends_on('python@3:', when='+python', type=('build', 'run'))
- depends_on('py-cffi', when='+python', type=('build', 'run'))
+ depends_on("python@3:", when="+python", type=("build", "run"))
+ depends_on("py-cffi", when="+python", type=("build", "run"))
def autoreconf(self, spec, prefix):
- autoreconf('--install', '--verbose', '--force')
+ autoreconf("--install", "--verbose", "--force")
- @when('+flux')
+ @when("+flux")
def setup_run_environment(self, env):
"""Load the mpibind plugin into Flux"""
- env.prepend_path('FLUX_SHELL_RC_PATH',
- join_path(self.prefix, 'share', 'mpibind'))
+ env.prepend_path("FLUX_SHELL_RC_PATH", join_path(self.prefix, "share", "mpibind"))
# To build and run the C unit tests, make sure 'libtap'
# is installed and recognized by pkgconfig.