python: use base instead of prefix in python/package.py

This commit is contained in:
Todd Gamblin 2022-08-15 18:12:47 -07:00
parent 2b69746e8a
commit 0d981a012d

View file

@ -1017,7 +1017,7 @@ def home(self):
``packages.yaml`` unknowingly. Query the python executable to
determine exactly where it is installed.
"""
return Prefix(self.config_vars["prefix"])
return Prefix(self.config_vars["base"])
def find_library(self, library):
# Spack installs libraries into lib, except on openSUSE where it installs them