Fix error reported on Google Groups list
Fixes the reported `TypeError: not enough arguments for format string` error.
This commit is contained in:
parent
78ac11ff88
commit
8de84b5d8a
@ -25,6 +25,7 @@
|
|||||||
from spack import *
|
from spack import *
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
class Libxml2(Package):
|
class Libxml2(Package):
|
||||||
"""Libxml2 is the XML C parser and toolkit developed for the Gnome
|
"""Libxml2 is the XML C parser and toolkit developed for the Gnome
|
||||||
project (but usable outside of the Gnome platform), it is free
|
project (but usable outside of the Gnome platform), it is free
|
||||||
@ -42,8 +43,11 @@ class Libxml2(Package):
|
|||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
if '+python' in spec:
|
if '+python' in spec:
|
||||||
site_packages_dir = os.path.join(prefix, 'lib/python%s.%s/site-packages' %(spec['python'].version[:2]))
|
site_packages_dir = os.path.join(prefix,
|
||||||
python_args = ["--with-python=%s" % spec['python'].prefix, "--with-python-install-dir=%s" % site_packages_dir]
|
'lib/python%s/site-packages'
|
||||||
|
% (spec['python'].version.up_to(2)))
|
||||||
|
python_args = ["--with-python=%s" % spec['python'].prefix,
|
||||||
|
"--with-python-install-dir=%s" % site_packages_dir]
|
||||||
else:
|
else:
|
||||||
python_args = ["--without-python"]
|
python_args = ["--without-python"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user