Update sys.path references (#50466)

This commit is contained in:
Harmen Stoppels 2025-05-14 12:25:00 +02:00 committed by GitHub
parent bd5f277e17
commit 1e9be97a25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -35,7 +35,6 @@
if not os.path.exists(link_name):
os.symlink(os.path.abspath("../../.."), link_name, target_is_directory=True)
sys.path.insert(0, os.path.abspath("_spack_root/lib/spack/external"))
sys.path.insert(0, os.path.abspath("_spack_root/lib/spack/external/_vendoring"))
sys.path.append(os.path.abspath("_spack_root/lib/spack/"))
# Add the Spack bin directory to the path so that we can use its output in docs.

View File

@ -10,7 +10,7 @@ def get_spack_sys_paths(spack_prefix):
"""Given a spack prefix, return all the paths Spack needs to function."""
spack_libs = os.path.join(spack_prefix, "lib", "spack")
external_libs = os.path.join(spack_libs, "external")
# spack externals take precedence, then vendored packages, then spack itself
# spack externals take precedence, then spack itself
return [external_libs, spack_libs]