<div dir="ltr">I don't think those comments are necessarily authoritative. LLDB on Windows basically requires Python 3, so I've been configuring my entire checkout with -DPYTHON_EXECUTABLE=C:/src/Python37/python.exe, and things work OK. However, I think that mainly controls how cmake invokes lit when you build `check-llvm`, so I wouldn't be surprised if the longer tail of scripts is Python2 only.<div><br></div><div>So, I think in practice, for important scripts that run as part of build & test, we are Python 3 ready. For the long tail of things that developers run locally (git-llvm, update_llc_test_checks.py, etc), I imagine things are done on an ad hoc basis.</div><div><br></div><div>If someone wanted to do a lot of testing and try to make CMake prefer python 3 if both are available, I think that would be reasonable now that Python 2 is approaching EOL. On reflection, that was just a long, hopefully nicer, way of saying "patches welcome." :)</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 19, 2019 at 7:55 AM Zero Zero via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,<br></div><div><br></div><div>Python 2.7 will become obsolete in January 2020 [1] with no further maintenance. LLVM still explicitly does not support Python 3 [2]. Is there a plan or a tracking bug for things that need to be done to support Python 3? The only thing I could find was this [3] from over three years ago.<br></div><div><br></div><div>Regards,</div><div>Z</div><div><br></div><div>1. <a href="https://www.python.org/dev/peps/pep-0373/" target="_blank">https://www.python.org/dev/peps/pep-0373/</a><br></div><div>2. <a href="https://github.com/llvm/llvm-project/blob/master/llvm/CMakeLists.txt#L668-L682" target="_blank">https://github.com/llvm/llvm-project/blob/master/llvm/CMakeLists.txt#L668-L682</a><br></div><div>3. <a href="https://reviews.llvm.org/D20825" target="_blank">https://reviews.llvm.org/D20825</a><br></div></div></div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>