add z-checker (#19738)

* revise z-checker's package.py

* add mpi dependency to z-checker

* add one whitespace required by Flake8

* trailing whitespace

Co-authored-by: Sheng Di <sdi1@anl.gov>
This commit is contained in:
Sheng Di 2020-11-06 07:48:11 -06:00 committed by GitHub
parent f041876470
commit 2cb676e8d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,32 @@
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
# ----------------------------------------------------------------------------
from spack import *
class ZChecker(AutotoolsPackage):
"""a library to perform the compression assessment for lossy compressors"""
homepage = "https://github.com/CODARcode/Z-checker"
url = "https://github.com/CODARcode/Z-checker/releases/download/0.5.0/Z-checker-0.5.0.tar.gz"
maintainers = ['disheng222']
version('0.5.0', sha256='ad5e68472c511b393ee1ae67d2e3072a22004001cf19a14bd99a2e322a6ce7f9')
variant('mpi', default=False,
description='Enable mpi compilation')
depends_on('mpi', when="+mpi")
def configure_args(self):
args = []
if '+mpi' in self.spec:
args += ['--enable-mpi']
else:
args += ['--disable-mpi']
return args