<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">LLVM's dependency on Python to *build* is historical, and could actually be removed. We use it for LLVMBuild, which was important back when we had autoconf as a method of maintaining library dependency graphs between autoconf and CMake. We could actually remove LLVMBuild and with it the python dependency. There was even a few patches a few years back to do it.<div class=""><br class=""></div><div class="">See:</div><div class=""><br class=""></div><div class=""><a href="https://reviews.llvm.org/D28086" class="">https://reviews.llvm.org/D28086</a></div><div class=""><a href="https://reviews.llvm.org/D28856" class="">https://reviews.llvm.org/D28856</a></div><div class=""><a href="https://reviews.llvm.org/D28855" class="">https://reviews.llvm.org/D28855</a></div><div class=""><br class=""></div><div class="">-Chris</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jul 11, 2019, at 1:53 PM, Tim Northover via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Thu, 11 Jul 2019 at 21:44, Joerg Sonnenberger via llvm-dev<br class=""><<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:<br class=""><blockquote type="cite" class="">That's what I said. The cmake based build system needs it. LIT is<br class="">optional. It is entirely feasible to have a custom build system and no<br class="">Python at all. It would be quite painful to break that.<br class=""></blockquote><br class="">To be explicit (and correct me if I misstate facts), NetBSD wants to<br class="">build Clang with minimal dependencies because it's the system<br class="">compiler. And so it completely replaces our build system with<br class="">something not far removed from a hard-coded set of build steps to<br class="">eliminate CMake/make/ninja (maybe you allow make?). Tests are not run<br class="">(at that stage?) since they do always require Python.<br class=""><br class="">To be frank, I do not think we should compromise LLVM to support this<br class="">system. It's just not a realistic thing to impose on an external<br class="">project: NetBSD's footprint constraints are its choice, and it should<br class="">bear the burden of supporting them.<br class=""><br class="">Personally, I support adding Python as a build dependency. Though I'd<br class="">be interested in seeing responses to Mehdi's comments.<br class=""><br class="">Cheers.<br class=""><br class="">Tim.<br class="">_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></div></blockquote></div><br class=""></div></body></html>