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.
This commit is contained in:
Glenn Johnson 2016-07-11 20:08:30 -05:00
parent 1b08296392
commit 81daaddfe9

View file

@ -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: