Fix MSI creation with Python 3.10.
@@ -173,6 +173,8 @@ class PackageGenerator:
pyinstaller_tmpdir]
for m in modules:
pyinst_cmd += ['--hidden-import', m]
+ # https://github.com/pyinstaller/pyinstaller/issues/5693
+ pyinst_cmd += ['--exclude-module', '_bootlocale']
pyinst_cmd += ['meson.py']
subprocess.check_call(pyinst_cmd)
shutil.move(pyinstaller_tmpdir + '/meson', main_stage)
