diff options
author | John W. Parent <45471568+johnwparent@users.noreply.github.com> | 2024-01-18 18:33:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-18 15:33:14 -0800 |
commit | 6fa7d8b6a69a1763001b52a430e843328c3eec90 (patch) | |
tree | 6a9b214413089d90a7cc1dfd1fb9abda67afa19f | |
parent | eb5494e9cc279488d73e86983ddee157924cb245 (diff) | |
download | spack-6fa7d8b6a69a1763001b52a430e843328c3eec90.tar.gz spack-6fa7d8b6a69a1763001b52a430e843328c3eec90.tar.bz2 spack-6fa7d8b6a69a1763001b52a430e843328c3eec90.tar.xz spack-6fa7d8b6a69a1763001b52a430e843328c3eec90.zip |
Skip sbang hook on Windows (#42156)
Sbangs don't exist on Native Windows, and the hook is causing errors
due to the file comparison + behavior of os.rename on Windows. Skip
the hook on Windows.
-rw-r--r-- | lib/spack/spack/hooks/sbang.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/hooks/sbang.py b/lib/spack/spack/hooks/sbang.py index fa100dc6af..83968603d5 100644 --- a/lib/spack/spack/hooks/sbang.py +++ b/lib/spack/spack/hooks/sbang.py @@ -229,6 +229,8 @@ def post_install(spec, explicit=None): $spack_prefix/bin/sbang instead of something longer than the shebang limit. """ + if sys.platform == "win32": + return if spec.external: tty.debug("SKIP: shebang filtering [external package]") return |