[PATCH] D67753: [gn build] Fix Python DeprecationWarning
Nico Weber via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 10:30:35 PDT 2019
thakis added a comment.
In D67753#1680892 <https://reviews.llvm.org/D67753#1680892>, @mantognini wrote:
> I don't have `PYTHONWARNINGS` set in my env. Maybe ninja invoke the script using `python -Wignore write_cmake_config.py` or something? It's quite worrisome that Python runtime can exhibit different behaviours without apparent reasons. :/
That's mysterious indeed. Looks like the default warnings come from here: https://github.com/python/cpython/blob/88e6447451fb5525e83e802c66c3e51b4a45bf86/Python/initconfig.c#L2064 You don't happen to run python in dev mode, do you? In dev mode, the warnings default to "default"; else they apparently don't.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67753/new/
https://reviews.llvm.org/D67753
More information about the llvm-commits
mailing list