[llvm-dev] Python 2 compatibility for utility scripts

James Henderson via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 17 01:53:56 PST 2019

I personally only use Python 3 reluctantly. I've yet to encounter a
situation where I actually preferred Python 3. That being said, given the
decision to retire Python 2.7 (*grumble* *grumble*), I'll probably be
forced sometime in the new year to uninstall it by somebody in charge of
security somewhere. I certainly don't see a personal need to have all
scripts support Python 2, unless they are used in the build/test pipeline
somewhere (i.e. get touched by a fresh check-all).

On Tue, 17 Dec 2019 at 05:31, Fangrui Song via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> https://reviews.llvm.org/D71565 intends to update
> llvm/utils/update_cc_test_checks.py to work with Python 2.
> In the original review, I suggested that we don't add Python 2
> compatibility for new features because Python 2.7 is retiring and some
> Linux distributions are even deprecating/removing Python 2 support. My
> feeling is:
> If some utilities do not support Python 2, we should probably not bother
> making them Python 2 compatible. Maintaining Python 2/3 compatibility
> may not worth the efforts. "utilities" include some command line tools
> under llvm/utils, which are not part of instructure like lit. What do
> people think?
> BTW, what's the Python 3 support status of build bots? Are there any
> running Python 3?
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191217/93e20adb/attachment.html>

More information about the llvm-dev mailing list