diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2022-07-30 15:19:18 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2022-07-31 13:29:20 -0700 |
commit | f52f6e99dbf1131886a80112b8c79dfc414afb7c (patch) | |
tree | 05cb7d64b2395922f2f24683da49f472075be12c /var/spack/repos/builtin/packages/minivite/package.py | |
parent | 549ba1ed32372c67fc57271cde3797d58b7dec6e (diff) | |
download | spack-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/minivite/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/minivite/package.py | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/var/spack/repos/builtin/packages/minivite/package.py b/var/spack/repos/builtin/packages/minivite/package.py index 343a5b50ee..14010102dd 100644 --- a/var/spack/repos/builtin/packages/minivite/package.py +++ b/var/spack/repos/builtin/packages/minivite/package.py @@ -8,43 +8,44 @@ from spack.package import * class Minivite(MakefilePackage): """miniVite is a proxy application that implements a single phase of - Louvain method in distributed memory for graph community detection. + Louvain method in distributed memory for graph community detection. """ - tags = ['proxy-app', 'ecp-proxy-app'] + + tags = ["proxy-app", "ecp-proxy-app"] homepage = "https://hpc.pnl.gov/people/hala/grappolo.html" - git = "https://github.com/Exa-Graph/miniVite.git" + git = "https://github.com/Exa-Graph/miniVite.git" - version('develop', branch='master') - version('1.0', tag='v1.0') - version('1.1', tag='v1.1') + version("develop", branch="master") + version("1.0", tag="v1.0") + version("1.1", tag="v1.1") - variant('openmp', default=True, description='Build with OpenMP support') - variant('opt', default=True, description='Optimization flags') + variant("openmp", default=True, description="Build with OpenMP support") + variant("opt", default=True, description="Optimization flags") - depends_on('mpi') + depends_on("mpi") @property def build_targets(self): targets = [] - cxxflags = ['-std=c++11 -g -DCHECK_NUM_EDGES -DPRINT_EXTRA_NEDGES'] + cxxflags = ["-std=c++11 -g -DCHECK_NUM_EDGES -DPRINT_EXTRA_NEDGES"] ldflags = [] - if '+openmp' in self.spec: + if "+openmp" in self.spec: cxxflags.append(self.compiler.openmp_flag) ldflags.append(self.compiler.openmp_flag) - if '+opt' in self.spec: - cxxflags.append(' -O3 ') + if "+opt" in self.spec: + cxxflags.append(" -O3 ") - targets.append('CXXFLAGS={0}'.format(' '.join(cxxflags))) - targets.append('OPTFLAGS={0}'.format(' '.join(ldflags))) - targets.append('CXX={0}'.format(self.spec['mpi'].mpicxx)) + targets.append("CXXFLAGS={0}".format(" ".join(cxxflags))) + targets.append("OPTFLAGS={0}".format(" ".join(ldflags))) + targets.append("CXX={0}".format(self.spec["mpi"].mpicxx)) return targets def install(self, spec, prefix): mkdirp(prefix.bin) - if (self.version >= Version('1.1')): - install('miniVite', prefix.bin) - elif (self.version >= Version('1.0')): - install('dspl', prefix.bin) + if self.version >= Version("1.1"): + install("miniVite", prefix.bin) + elif self.version >= Version("1.0"): + install("dspl", prefix.bin) |