summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/build_systems/sip.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/spack/spack/build_systems/sip.py b/lib/spack/spack/build_systems/sip.py
index d40be9d3c9..814aa2605b 100644
--- a/lib/spack/spack/build_systems/sip.py
+++ b/lib/spack/spack/build_systems/sip.py
@@ -99,7 +99,9 @@ class SIPPackage(PackageBase):
args = self.configure_args()
- python_include_dir = 'python' + str(spec['python'].version.up_to(2))
+ python_include_dir = os.path.basename(
+ inspect.getmodule(self).python_include_dir
+ )
args.extend([
'--verbose',