Index: setup.py =================================================================== --- setup.py (révision 81175) +++ setup.py (copie de travail) @@ -1672,6 +1672,14 @@ # turn off warnings when deprecated modules are imported import warnings warnings.filterwarnings("ignore",category=DeprecationWarning) + if os.name != "nt": + # Set stdout encoder error handler to backslashreplace (as stderr error + # handler) to avoid UnicodeEncodeError when printing a non-ASCII path + # whereas stdout encoding is ASCII + stdout = sys.stdout + sys.stdout = open(stdout.fileno(), 'w', + encoding=stdout.encoding, + errors="backslashreplace") setup(# PyPI Metadata (PEP 301) name = "Python", version = sys.version.split()[0],