add root to rpath of python (#48491)

* add root to rpath of python?

* fix #48446

* [@spackbot] updating style on behalf of DingXuefeng

---------

Co-authored-by: DingXuefeng <DingXuefeng@users.noreply.github.com>
Co-authored-by: Patrick Gartung <gartung@fnal.gov>
This commit is contained in:
Xuefeng Ding 2025-01-16 05:27:59 +08:00 committed by GitHub
parent af25a84a56
commit 25f24d947a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -843,6 +843,7 @@ def setup_run_environment(self, env):
# the following vars are copied from thisroot.sh; silence a cppyy warning
env.set("CLING_STANDARD_PCH", "none")
env.set("CPPYY_API_PATH", "none")
env.set("CPPYY_BACKEND_LIBRARY", self.prefix.lib.root.libcppyy_backend)
if "+rpath" not in self.spec:
env.prepend_path(self.root_library_path, self.prefix.lib.root)