From c803a0409d94c0d5a4e75cf03661fece14cee033 Mon Sep 17 00:00:00 2001 From: Chen Tao Date: Sun, 29 Jun 2025 21:49:56 +0800 Subject: [PATCH] Fix install fail when OS defaults to non utf-8 encodings I'm running into an issue that local `pip install -e` failed on the open. Changing it to open with `utf-8` fixed it for me. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9d42510..cf36a71 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ install_requires = requirements, extras_require = { 'dev': dev_requirements }, python_requires = '>=' + cfg['min_python'], - long_description = open('README.md').read(), + long_description = open('README.md', encoding='utf-8').read(), long_description_content_type = 'text/markdown', zip_safe = False, entry_points = { 'console_scripts': cfg.get('console_scripts','').split() },