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
|
# 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):
|
|||||||
|
|
||||||
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user