summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/bml/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/bml/package.py')
-rw-r--r--var/spack/repos/builtin/packages/bml/package.py42
1 files changed, 20 insertions, 22 deletions
diff --git a/var/spack/repos/builtin/packages/bml/package.py b/var/spack/repos/builtin/packages/bml/package.py
index 9fafba5a55..a9fc4e66ec 100644
--- a/var/spack/repos/builtin/packages/bml/package.py
+++ b/var/spack/repos/builtin/packages/bml/package.py
@@ -12,36 +12,34 @@ class Bml(CMakePackage):
matrix operations."""
homepage = "https://lanl.github.io/bml/"
- url = "https://github.com/lanl/bml/tarball/v1.2.2"
- git = "https://github.com/lanl/bml.git"
+ url = "https://github.com/lanl/bml/tarball/v1.2.2"
+ git = "https://github.com/lanl/bml.git"
- version('develop', branch='master')
- version('1.3.1', sha256='17145eda96aa5e550dcbff1ee7ce62b45723af8210b1ab70c5975ec792fa3d13')
- version('1.3.0', sha256='d9465079fe77210eb2af2dcf8ed96802edf5bb76bfbfdbcc97e206c8cd460b07')
- version('1.2.3', sha256='9a2ee6c47d2445bfdb34495497ea338a047e9e4767802af47614d9ff94b0c523')
- version('1.2.2', sha256='89ab78f9fe8395fe019cc0495a1d7b69875b5708069faeb831ddb9a6a9280a8a')
- version('1.1.0', sha256='29162f1f7355ad28b44d3358206ccd3c7ac7794ee13788483abcbd2f8063e7fc')
+ version("develop", branch="master")
+ version("1.3.1", sha256="17145eda96aa5e550dcbff1ee7ce62b45723af8210b1ab70c5975ec792fa3d13")
+ version("1.3.0", sha256="d9465079fe77210eb2af2dcf8ed96802edf5bb76bfbfdbcc97e206c8cd460b07")
+ version("1.2.3", sha256="9a2ee6c47d2445bfdb34495497ea338a047e9e4767802af47614d9ff94b0c523")
+ version("1.2.2", sha256="89ab78f9fe8395fe019cc0495a1d7b69875b5708069faeb831ddb9a6a9280a8a")
+ version("1.1.0", sha256="29162f1f7355ad28b44d3358206ccd3c7ac7794ee13788483abcbd2f8063e7fc")
- variant('shared', default=True, description='Build shared libs')
- variant('mpi', default=True, description='Build with MPI Support')
+ variant("shared", default=True, description="Build shared libs")
+ variant("mpi", default=True, description="Build with MPI Support")
- conflicts('+mpi', when='@:1.2.2')
+ conflicts("+mpi", when="@:1.2.2")
depends_on("blas")
depends_on("lapack")
- depends_on('mpi', when='+mpi')
- depends_on('python', type='build')
+ depends_on("mpi", when="+mpi")
+ depends_on("python", type="build")
def cmake_args(self):
- args = [
- self.define_from_variant('BUILD_SHARED_LIBS', 'shared')
- ]
+ args = [self.define_from_variant("BUILD_SHARED_LIBS", "shared")]
spec = self.spec
- if '+mpi' in spec:
- args.append('-DBML_MPI=True')
- args.append('-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc)
- args.append('-DCMAKE_CXX_COMPILER=%s' % spec['mpi'].mpicxx)
- args.append('-DCMAKE_Fortran_COMPILER=%s' % spec['mpi'].mpifc)
+ if "+mpi" in spec:
+ args.append("-DBML_MPI=True")
+ args.append("-DCMAKE_C_COMPILER=%s" % spec["mpi"].mpicc)
+ args.append("-DCMAKE_CXX_COMPILER=%s" % spec["mpi"].mpicxx)
+ args.append("-DCMAKE_Fortran_COMPILER=%s" % spec["mpi"].mpifc)
else:
- args.append('-DBML_MPI=False')
+ args.append("-DBML_MPI=False")
return args