Merge pull request #1222 from glennpj/libxml2
Use the site_packages_dir from the Python class
This commit is contained in:
commit
04b3d8d86f
@ -23,7 +23,6 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
from spack import *
|
||||
import os
|
||||
|
||||
|
||||
class Libxml2(Package):
|
||||
@ -43,9 +42,6 @@ class Libxml2(Package):
|
||||
|
||||
def install(self, spec, prefix):
|
||||
if '+python' in spec:
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user