<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">As far as I remember, it’s trickier on Windows where there is a special hack for shebang to python specifically.<div class=""><br class=""></div><div class="">-Valeriy<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 22 Apr 2021, at 12:29, Haojian Wu via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello folks,<div class=""><br class=""></div><div class="">We have a mixture of python(2) vs python3 shebang usage in llvm codebase.</div><div class=""><br class=""></div><div class="">As python2 upstream support has ended, what's the LLVM policy here? Shall we change the shebang to python3 for all scripts? </div><div class=""><br class=""></div><div class="">- For llvm-developer-only python scripts (e.g. clang-tidy/add_new_check.py), it is safe to do this change, as <a href="https://llvm.org/docs/GettingStarted.html#software" class="">LLVM development</a> requires python >= 3.6 </div><div class="">- For python scripts being interacted with people's workflow (e.g. clang-format-diff.py), it seems unclear to me, changing the shebang would break people's workflow on python2 machines.</div><div class=""><br class=""></div><div class="">I have some patches (<a href="https://reviews.llvm.org/D101038" class="">https://reviews.llvm.org/D101038</a>, <a href="https://reviews.llvm.org/D101037" class="">https://reviews.llvm.org/D101037</a>). What do people think?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Haojian</div></div>
_______________________________________________<br class="">cfe-dev mailing list<br class=""><a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev<br class=""></div></blockquote></div><br class=""></div></body></html>