summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/flux-pmix/package.py
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2022-07-30 15:19:18 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2022-07-31 13:29:20 -0700
commitf52f6e99dbf1131886a80112b8c79dfc414afb7c (patch)
tree05cb7d64b2395922f2f24683da49f472075be12c /var/spack/repos/builtin/packages/flux-pmix/package.py
parent549ba1ed32372c67fc57271cde3797d58b7dec6e (diff)
downloadspack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.gz
spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.bz2
spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.xz
spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.zip
black: reformat entire repository with black
Diffstat (limited to 'var/spack/repos/builtin/packages/flux-pmix/package.py')
-rw-r--r--var/spack/repos/builtin/packages/flux-pmix/package.py46
1 files changed, 22 insertions, 24 deletions
diff --git a/var/spack/repos/builtin/packages/flux-pmix/package.py b/var/spack/repos/builtin/packages/flux-pmix/package.py
index 68709a1367..0738d81b8b 100644
--- a/var/spack/repos/builtin/packages/flux-pmix/package.py
+++ b/var/spack/repos/builtin/packages/flux-pmix/package.py
@@ -9,40 +9,38 @@ from spack.package import *
class FluxPmix(AutotoolsPackage):
- """ A flux shell plugin to bootstrap openmpi v5+ """
+ """A flux shell plugin to bootstrap openmpi v5+"""
homepage = "https://github.com/flux-framework/flux-pmix"
- url = "https://github.com/flux-framework/flux-pmix/releases/download/v0.1.0/flux-pmix-0.1.0.tar.gz"
- git = "https://github.com/flux-framework/flux-pmix.git"
+ url = "https://github.com/flux-framework/flux-pmix/releases/download/v0.1.0/flux-pmix-0.1.0.tar.gz"
+ git = "https://github.com/flux-framework/flux-pmix.git"
- maintainers = ['grondo']
+ maintainers = ["grondo"]
- version('main', branch='main')
- version('0.2.0', sha256='d09f1fe6ffe54f83be4677e1e727640521d8110090515d94013eba0f58216934')
+ version("main", branch="main")
+ version("0.2.0", sha256="d09f1fe6ffe54f83be4677e1e727640521d8110090515d94013eba0f58216934")
- depends_on('flux-core@0.30.0:')
- depends_on('pmix@v4.1.0:')
- depends_on('openmpi')
+ depends_on("flux-core@0.30.0:")
+ depends_on("pmix@v4.1.0:")
+ depends_on("openmpi")
- depends_on('pkgconfig', type='build')
- depends_on('autoconf', type='build')
- depends_on('automake', type='build')
- depends_on('libtool', type='build')
+ depends_on("pkgconfig", type="build")
+ depends_on("autoconf", type="build")
+ depends_on("automake", type="build")
+ depends_on("libtool", type="build")
def autoreconf(self, spec, prefix):
- if not os.path.exists('configure'):
+ if not os.path.exists("configure"):
# Bootstrap with autotools
- bash = which('bash')
- bash('./autogen.sh')
+ bash = which("bash")
+ bash("./autogen.sh")
- @run_after('install')
+ @run_after("install")
def add_pluginpath(self):
- rcfile = join_path(self.prefix.etc,
- 'flux/shell/lua.d/mpi/openmpi@5.lua')
- filter_file(r'pmix/pmix.so',
- join_path(self.prefix.lib,
- "flux/shell/plugins/pmix/pmix.so"), rcfile)
+ rcfile = join_path(self.prefix.etc, "flux/shell/lua.d/mpi/openmpi@5.lua")
+ filter_file(
+ r"pmix/pmix.so", join_path(self.prefix.lib, "flux/shell/plugins/pmix/pmix.so"), rcfile
+ )
def setup_run_environment(self, env):
- env.prepend_path('FLUX_SHELL_RC_PATH',
- join_path(self.prefix, 'etc/flux/shell/lua.d'))
+ env.prepend_path("FLUX_SHELL_RC_PATH", join_path(self.prefix, "etc/flux/shell/lua.d"))