summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-07-11 15:27:15 -0700
committerGitHub <noreply@github.com>2016-07-11 15:27:15 -0700
commit551d9eb3286195e3b29133fd89435f731bcfd972 (patch)
tree32b06019d5535c3a0d1a5add7c66b9d417003e3d /var
parent78ac11ff8892c859489e3b9c7c5efb17749e1bc8 (diff)
parent1b08296392e5413a8cbe33b0337f74cd59fec2e6 (diff)
downloadspack-551d9eb3286195e3b29133fd89435f731bcfd972.tar.gz
spack-551d9eb3286195e3b29133fd89435f731bcfd972.tar.bz2
spack-551d9eb3286195e3b29133fd89435f731bcfd972.tar.xz
spack-551d9eb3286195e3b29133fd89435f731bcfd972.zip
Merge pull request #1220 from glennpj/libxml2
Fix libxml2 error reported on Google Groups list
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/libxml2/package.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/libxml2/package.py b/var/spack/repos/builtin/packages/libxml2/package.py
index baaa2fc83d..360386669a 100644
--- a/var/spack/repos/builtin/packages/libxml2/package.py
+++ b/var/spack/repos/builtin/packages/libxml2/package.py
@@ -25,6 +25,7 @@
from spack import *
import os
+
class Libxml2(Package):
"""Libxml2 is the XML C parser and toolkit developed for the Gnome
project (but usable outside of the Gnome platform), it is free
@@ -42,8 +43,11 @@ class Libxml2(Package):
def install(self, spec, prefix):
if '+python' in spec:
- site_packages_dir = os.path.join(prefix, 'lib/python%s.%s/site-packages' %(spec['python'].version[:2]))
- python_args = ["--with-python=%s" % spec['python'].prefix, "--with-python-install-dir=%s" % site_packages_dir]
+ site_packages_dir = os.path.join(prefix,
+ '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:
python_args = ["--without-python"]