From 81daaddfe91a1684e9d80c9fd42ca6ba2586ee33 Mon Sep 17 00:00:00 2001 From: Glenn Johnson Date: Mon, 11 Jul 2016 20:08:30 -0500 Subject: Use the site_packages_dir from the Python class It is not necessary to set site_packages_dir in this package as it is already provided by the Python package class. --- var/spack/repos/builtin/packages/libxml2/package.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/libxml2/package.py b/var/spack/repos/builtin/packages/libxml2/package.py index 360386669a..fe4bafe2e7 100644 --- a/var/spack/repos/builtin/packages/libxml2/package.py +++ b/var/spack/repos/builtin/packages/libxml2/package.py @@ -43,9 +43,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: -- cgit v1.2.3-60-g2f50