Bugzilla – Bug 1239
configure fails to find python distutils if python prints warning
Last modified: 2017-03-23 11:24:38 CET
Created attachment 388 [details]
patch to test return value instead of empty output
In current Fedora rawhide, python3 now prints warning if LC_ALL=C.
It makes configure script to fail with python3.
$ LC_ALL=C python3 -c "import distutils"
Produces this output to stderr:
Python detected LC_CTYPE=C: LC_ALL & LANG coerced to C.UTF-8 (set another locale or PYTHONCOERCECLOCALE=0 to disable this locale coercion behaviour).
Because distutils detection uses not-empty output detection, it fails to pass configure on rawhide. It prevents package to compile from mockbuild.
I am attaching proposed patch that will pass distutils test even with python printing a harmless warning.
Thank you for the patch. I have committed it.
Best regards, Wouter