summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2022-10-10 08:26:30 -0500
committerGitHub <noreply@github.com>2022-10-10 13:26:30 +0000
commit7cb745b03a81093d452deebe2cb4fbcf3635feec (patch)
treebedaa87a3f0205070bc336b6fa8dba1a80189dc5 /lib
parentbfbd411091e792f255229db4dfa6df1fd80268bf (diff)
downloadspack-7cb745b03a81093d452deebe2cb4fbcf3635feec.tar.gz
spack-7cb745b03a81093d452deebe2cb4fbcf3635feec.tar.bz2
spack-7cb745b03a81093d452deebe2cb4fbcf3635feec.tar.xz
spack-7cb745b03a81093d452deebe2cb4fbcf3635feec.zip
PythonPackage: fix libs/headers attributes (#32970)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/python.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/build_systems/python.py b/lib/spack/spack/build_systems/python.py
index 085feec5fe..d1cecdac63 100644
--- a/lib/spack/spack/build_systems/python.py
+++ b/lib/spack/spack/build_systems/python.py
@@ -243,8 +243,8 @@ class PythonPackage(PackageBase):
"""Discover header files in platlib."""
# Headers may be in either location
- include = inspect.getmodule(self).include
- platlib = inspect.getmodule(self).platlib
+ include = self.prefix.join(self.spec["python"].package.include)
+ platlib = self.prefix.join(self.spec["python"].package.platlib)
headers = find_all_headers(include) + find_all_headers(platlib)
if headers:
@@ -259,7 +259,7 @@ class PythonPackage(PackageBase):
# Remove py- prefix in package name
library = "lib" + self.spec.name[3:].replace("-", "?")
- root = inspect.getmodule(self).platlib
+ root = self.prefix.join(self.spec["python"].package.platlib)
for shared in [True, False]:
libs = find_libraries(library, root, shared=shared, recursive=True)