diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2018-03-23 15:35:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-23 15:35:09 -0500 |
commit | 5b810579facb503007d2cb7dd4a79c237e670c0f (patch) | |
tree | 67a1b9be89d6d28ee9b0d7aa25c6d6a68c080663 | |
parent | 04358f827f86c0aa39e7d56b0f5e6c427a64e433 (diff) | |
download | spack-5b810579facb503007d2cb7dd4a79c237e670c0f.tar.gz spack-5b810579facb503007d2cb7dd4a79c237e670c0f.tar.bz2 spack-5b810579facb503007d2cb7dd4a79c237e670c0f.tar.xz spack-5b810579facb503007d2cb7dd4a79c237e670c0f.zip |
Only add python flag for newer versions of glib (#7579)
-rw-r--r-- | var/spack/repos/builtin/packages/glib/package.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/glib/package.py b/var/spack/repos/builtin/packages/glib/package.py index e517f0a693..a8bb034f04 100644 --- a/var/spack/repos/builtin/packages/glib/package.py +++ b/var/spack/repos/builtin/packages/glib/package.py @@ -81,9 +81,10 @@ class Glib(AutotoolsPackage): def configure_args(self): args = [] args.extend(self.enable_or_disable('libmount')) - args.append('--with-python={0}'.format( - os.path.basename(self.spec['python'].command.path)) - ) + if self.spec.satisfies('@2.53.4:'): + args.append('--with-python={0}'.format( + os.path.basename(self.spec['python'].command.path)) + ) args.extend(self.enable_or_disable('tracing')) return args |