-
Notifications
You must be signed in to change notification settings - Fork 197
Python3 shebang for 3.1.0 #2261
Copy link
Copy link
Closed
Milestone
Description
Originally posted by @bjeurissen in #2047 (comment)
D'Oh. Better to discover such while it's only on dev though.
- We can just revert to
#!/usr/bin/env python3, despite the recommendations against use ofenv; - This comment on the page Donald linked earlier suggests using some shell logic within the shebang itself to determine the appropriate interpreter;
- The recommendation to incorporate into the build system isn't ideal for us given we're now distributing pre-compiled code, i.e. we can't rely on
configureorbuild. If however we had a script that set script shebangs, thenconfigurecould use logic of any arbitrary complexity to try to decide this, and those installing from pre-compiled packages could still use it if the default doesn't work on their system. - Still not a fan of requiring users to explicitly specify the interpreter each time...
- Any other options still on the table?
Reactions are currently unavailable