Skip to content

BLD: fix invalid shebang for build helper script #17210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

eli-schwartz
Copy link
Contributor

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

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 scipy#17020
@rgommers rgommers added this to the 1.10.0 milestone Oct 12, 2022
@rgommers rgommers added maintenance Items related to regular maintenance tasks backport-candidate This fix should be ported by a maintainer to previous SciPy versions. labels Oct 12, 2022
Copy link
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @eli-schwartz

@rgommers rgommers merged commit 5590b86 into scipy:main Oct 12, 2022
@tylerjereddy tylerjereddy modified the milestones: 1.10.0, 1.9.3 Oct 16, 2022
@tylerjereddy tylerjereddy removed the backport-candidate This fix should be ported by a maintainer to previous SciPy versions. label Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Build failure due to problems with shebang line in cythoner.py
3 participants