Only add python flag for newer versions of glib (#7579)

This commit is contained in:
Adam J. Stewart 2018-03-23 15:35:09 -05:00 committed by GitHub
parent 04358f827f
commit 5b810579fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,6 +81,7 @@ def url_for_version(self, version):
def configure_args(self):
args = []
args.extend(self.enable_or_disable('libmount'))
if self.spec.satisfies('@2.53.4:'):
args.append('--with-python={0}'.format(
os.path.basename(self.spec['python'].command.path))
)