diff options
author | Adam Moody <moody20@llnl.gov> | 2017-06-30 09:53:47 -0700 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-06-30 11:53:47 -0500 |
commit | 4dc79f9efba8f0ca8a3fc091a4a573bc3f87b7d4 (patch) | |
tree | cecce7142a6b6a1c42c8671f1ecdf2d16078eac9 | |
parent | 2e6a735b0043bebe8c6ff88f21c1bb2de0063135 (diff) | |
download | spack-4dc79f9efba8f0ca8a3fc091a4a573bc3f87b7d4.tar.gz spack-4dc79f9efba8f0ca8a3fc091a4a573bc3f87b7d4.tar.bz2 spack-4dc79f9efba8f0ca8a3fc091a4a573bc3f87b7d4.tar.xz spack-4dc79f9efba8f0ca8a3fc091a4a573bc3f87b7d4.zip |
mpifileutils: update to v0.7 (#4642)
* mpifileutils: update to v0.7
* mpifileutils: disable --enable-experimental in v0.6 and earlier
* mpifileutils: list newest version first, avoid experimental switch unless at v0.7 or later
-rw-r--r-- | var/spack/repos/builtin/packages/mpifileutils/package.py | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/mpifileutils/package.py b/var/spack/repos/builtin/packages/mpifileutils/package.py index 03ec613e0b..21b600f99b 100644 --- a/var/spack/repos/builtin/packages/mpifileutils/package.py +++ b/var/spack/repos/builtin/packages/mpifileutils/package.py @@ -38,6 +38,7 @@ class Mpifileutils(AutotoolsPackage): homepage = "https://github.com/hpc/mpifileutils" url = "https://github.com/hpc/mpifileutils/releases/download/v0.6/mpifileutils-0.6.tar.gz" + version('0.7', 'c081f7f72c4521dddccdcf9e087c5a2b') version('0.6', '620bcc4966907481f1b1a965b28fc9bf') depends_on('mpi') @@ -52,10 +53,11 @@ class Mpifileutils(AutotoolsPackage): variant('lustre', default=False, description="Enable optimizations and features for Lustre") - # install experimental tools - # (coming with v0.7) - # variant('experimental', default=False, - # description="Install experimental tools") + variant('experimental', default=False, + description="Install experimental tools") + + # --enable-experimental fails with v0.6 and earlier + conflicts('+experimental', when='@:0.6') def configure_args(self): args = [] @@ -65,11 +67,11 @@ class Mpifileutils(AutotoolsPackage): else: args.append('--disable-lustre') - # coming with v0.7 - # if '+experimental' in self.spec: - # args.append('--enable-experimental') - # else: - # args.append('--disable-experimental') + if self.spec.satisfies('@0.7:'): + if '+experimental' in self.spec: + args.append('--enable-experimental') + else: + args.append('--disable-experimental') return args |