From cafcdede5fcd30a04c989d954b0d2fec90a4e204 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 15 Mar 2022 11:20:00 +0100 Subject: [PATCH] dist: Disable _bootlocale injection for Python 3.10+ Python 3.10 removed the _bootlocale module (see bpo-42208) [skip ci] --- direct/src/dist/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/dist/commands.py b/direct/src/dist/commands.py index e710366177..e55ed8a2cd 100644 --- a/direct/src/dist/commands.py +++ b/direct/src/dist/commands.py @@ -157,7 +157,7 @@ from _frozen_importlib import _imp, FrozenImporter sys.frozen = True -if sys.platform == 'win32': +if sys.platform == 'win32' and sys.version_info < (3, 10): # Make sure the preferred encoding is something we actually support. import _bootlocale enc = _bootlocale.getpreferredencoding().lower()