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.
This commit is contained in:
John W. Parent
2024-01-18 18:33:14 -05:00
committed by GitHub
parent eb5494e9cc
commit 6fa7d8b6a6

View File

@@ -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