Skip to content

Commit

Permalink
BLD: fix invalid shebang for build helper script
Browse files Browse the repository at this point in the history
Shebangs do not work this way, but Meson could usually paper over the
differences by noticing that the last element is "python3" and rewiring
it to use its own sys.executable. However, this failed on WSL, likely
because platform quirks meant the script was directly executable, while
simultaneously having a shebang that was a fatal error.

Use a standard shebang indicating this script would like to run with
some form of python3 (which is exactly what it needs).

Fixes #17020
  • Loading branch information
eli-schwartz authored and tylerjereddy committed Oct 16, 2022
1 parent a9a6582 commit 2db3440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scipy/_build_utils/cythoner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!python3
#!/usr/bin/env python3
""" Scipy variant of Cython command
Cython, as applied to single pyx file.
Expand Down

0 comments on commit 2db3440

Please sign in to comment.