From 618a1c7119245f7933f4fa0c49d3b2dde3c7cc45 Mon Sep 17 00:00:00 2001
From: "Kelly T. Kirk" <kelly.t.kirk@us.army.mil>
Date: Thu, 5 Nov 2015 08:01:00 -0500
Subject: Was getting system python over spack python

---
 var/spack/packages/libxml2/package.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'var')

diff --git a/var/spack/packages/libxml2/package.py b/var/spack/packages/libxml2/package.py
index 3a0af6b368..df311bfaba 100644
--- a/var/spack/packages/libxml2/package.py
+++ b/var/spack/packages/libxml2/package.py
@@ -14,7 +14,8 @@ class Libxml2(Package):
     depends_on('xz')
 
     def install(self, spec, prefix):
-        configure("--prefix=%s" % prefix)
+        configure("--prefix=%s" % prefix, 
+                  "--with-python=%s" % spec['python'].prefix)
 
         make()
         make("install")
-- 
cgit v1.2.3-70-g09d2