summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/python.py16
-rw-r--r--lib/spack/spack/build_systems/sip.py5
2 files changed, 13 insertions, 8 deletions
diff --git a/lib/spack/spack/build_systems/python.py b/lib/spack/spack/build_systems/python.py
index 27b1d4a10c..c3bf323d84 100644
--- a/lib/spack/spack/build_systems/python.py
+++ b/lib/spack/spack/build_systems/python.py
@@ -127,7 +127,10 @@ class PythonPackage(PackageBase):
list: list of strings of module names
"""
modules = []
- root = self.spec['python'].package.get_python_lib(prefix=self.prefix)
+ root = os.path.join(
+ self.prefix,
+ self.spec['python'].package.config_vars['python_lib']['false']['false'],
+ )
# Some Python libraries are packages: collections of modules
# distributed in directories containing __init__.py files
@@ -252,12 +255,11 @@ class PythonPackage(PackageBase):
# Get all relative paths since we set the root to `prefix`
# We query the python with which these will be used for the lib and inc
# directories. This ensures we use `lib`/`lib64` as expected by python.
- pure_site_packages_dir = spec['python'].package.get_python_lib(
- plat_specific=False, prefix='')
- plat_site_packages_dir = spec['python'].package.get_python_lib(
- plat_specific=True, prefix='')
- inc_dir = spec['python'].package.get_python_inc(
- plat_specific=True, prefix='')
+ pure_site_packages_dir = spec['python'].package.config_vars[
+ 'python_lib']['false']['false']
+ plat_site_packages_dir = spec['python'].package.config_vars[
+ 'python_lib']['true']['false']
+ inc_dir = spec['python'].package.config_vars['python_inc']['true']
args += ['--root=%s' % prefix,
'--install-purelib=%s' % pure_site_packages_dir,
diff --git a/lib/spack/spack/build_systems/sip.py b/lib/spack/spack/build_systems/sip.py
index 744989e2d6..1b9d01fbf4 100644
--- a/lib/spack/spack/build_systems/sip.py
+++ b/lib/spack/spack/build_systems/sip.py
@@ -64,7 +64,10 @@ class SIPPackage(PackageBase):
list: list of strings of module names
"""
modules = []
- root = self.spec['python'].package.get_python_lib(prefix=self.prefix)
+ root = os.path.join(
+ self.prefix,
+ self.spec['python'].package.config_vars['python_lib']['false']['false'],
+ )
# Some Python libraries are packages: collections of modules
# distributed in directories containing __init__.py files