summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/sip.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/spack/spack/build_systems/sip.py b/lib/spack/spack/build_systems/sip.py
index 7d689ee30c..b4be6ed5f2 100644
--- a/lib/spack/spack/build_systems/sip.py
+++ b/lib/spack/spack/build_systems/sip.py
@@ -102,17 +102,13 @@ class SIPPackage(PackageBase):
args = self.configure_args()
- python_include_dir = os.path.basename(
- inspect.getmodule(self).python_include_dir
- )
-
args.extend([
'--verbose',
'--confirm-license',
'--qmake', spec['qt'].prefix.bin.qmake,
'--sip', spec['py-sip'].prefix.bin.sip,
- '--sip-incdir', join_path(spec['py-sip'].prefix.include,
- python_include_dir),
+ '--sip-incdir', join_path(spec['py-sip'].prefix,
+ spec['python'].package.include),
'--bindir', prefix.bin,
'--destdir', inspect.getmodule(self).python_platlib,
])