libxml2: use spack's xz (#5816)

This commit is contained in:
Christoph Junghans 2017-10-19 00:32:37 -06:00 committed by Massimiliano Culpo
parent 6642f62eb9
commit 4774c9887e

View file

@ -48,12 +48,15 @@ class Libxml2(AutotoolsPackage):
def configure_args(self):
spec = self.spec
args = ["--with-lzma=%s" % spec['xz'].prefix]
if '+python' in spec:
python_args = [
args.extend([
'--with-python={0}'.format(spec['python'].home),
'--with-python-install-dir={0}'.format(site_packages_dir)
]
])
else:
python_args = ['--without-python']
args.append('--without-python')
return python_args
return args