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:
parent
eb5494e9cc
commit
6fa7d8b6a6
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue