summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>2021-11-03 16:27:04 +0100
committerGitHub <noreply@github.com>2021-11-03 10:27:04 -0500
commit8e4d5a09228f69340218705ee27d18951bafabea (patch)
treef0a874904908321758d843afb4ee77c73754024c
parent5c13c5892b872ed9aa32c0acf6f9df39cb2b79cc (diff)
downloadspack-8e4d5a09228f69340218705ee27d18951bafabea.tar.gz
spack-8e4d5a09228f69340218705ee27d18951bafabea.tar.bz2
spack-8e4d5a09228f69340218705ee27d18951bafabea.tar.xz
spack-8e4d5a09228f69340218705ee27d18951bafabea.zip
sip: fix python_include_dir (#26953)
-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',