Skip to content
Snippets Groups Projects
Commit 04b3d8d8 authored by Todd Gamblin's avatar Todd Gamblin Committed by GitHub
Browse files

Merge pull request #1222 from glennpj/libxml2

Use the site_packages_dir from the Python class
parents 38e722f7 5e323b05
Branches
Tags
No related merge requests found
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
############################################################################## ##############################################################################
from spack import * from spack import *
import os
class Libxml2(Package): class Libxml2(Package):
...@@ -43,9 +42,6 @@ class Libxml2(Package): ...@@ -43,9 +42,6 @@ class Libxml2(Package):
def install(self, spec, prefix): def install(self, spec, prefix):
if '+python' in spec: 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, python_args = ["--with-python=%s" % spec['python'].prefix,
"--with-python-install-dir=%s" % site_packages_dir] "--with-python-install-dir=%s" % site_packages_dir]
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment