From 376b0a55b17ff8fefd0a79873807df71dcbfbc61 Mon Sep 17 00:00:00 2001 From: Vladimir Martianov Date: Tue, 14 May 2024 18:00:46 +0200 Subject: Fixing error with installation on windows with cp1251 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e1e54434..abecb1a1 100644 --- a/setup.py +++ b/setup.py @@ -416,7 +416,7 @@ _write_pkg_file_orig = DistributionMetadata.write_pkg_file def _write_pkg_file(self, file): - with TemporaryFile(mode="w+") as tmpfd: + with TemporaryFile(mode="w+", encoding="utf-8") as tmpfd: _write_pkg_file_orig(self, tmpfd) tmpfd.seek(0) for line in tmpfd: -- cgit 1.4.1