[llvm-dev] Migrate utils/ Python 2 scripts to Python 3

Matthias Braun via llvm-dev llvm-dev at lists.llvm.org
Thu Feb 1 14:02:14 PST 2018



> On Feb 1, 2018, at 1:59 PM, Dimitry Andric via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> As mentioned in https://docs.python.org/3/using/unix.html#miscellaneous <https://docs.python.org/3/using/unix.html#miscellaneous>, for Python 3 the shebang line should be:
> 
> #!/usr/bin/env python3
> 
> For Python 2 the shebang line should probably be:
> 
> #!/usr/bin/env python2
> 
Unfortunately macOS never shipped with this symlink AFAIK. so `python2.7` should work better for a bigger number of macOS users.

- Matthias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180201/414bf0db/attachment.html>


More information about the llvm-dev mailing list