libxml2: use spack's xz (#5816)
This commit is contained in:
parent
6642f62eb9
commit
4774c9887e
1 changed files with 7 additions and 4 deletions
|
@ -48,12 +48,15 @@ class Libxml2(AutotoolsPackage):
|
||||||
|
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
|
|
||||||
|
args = ["--with-lzma=%s" % spec['xz'].prefix]
|
||||||
|
|
||||||
if '+python' in spec:
|
if '+python' in spec:
|
||||||
python_args = [
|
args.extend([
|
||||||
'--with-python={0}'.format(spec['python'].home),
|
'--with-python={0}'.format(spec['python'].home),
|
||||||
'--with-python-install-dir={0}'.format(site_packages_dir)
|
'--with-python-install-dir={0}'.format(site_packages_dir)
|
||||||
]
|
])
|
||||||
else:
|
else:
|
||||||
python_args = ['--without-python']
|
args.append('--without-python')
|
||||||
|
|
||||||
return python_args
|
return args
|
||||||
|
|
Loading…
Reference in a new issue