From 06b98f8d5e525601a763103ad572b8ae615655a5 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 21 Jul 2024 15:46:45 -0600 Subject: [PATCH] Making the python installer work in a Windows environment. (#158) * Updating setup.py, text encoding flag. Updating the open() function to include the correct text encoding, otherwise it'll use the default of the OS. Using the default text encoding on windows uses cp1252 which creates decoding errors when setup.py runs. * Forgot to make utf_8 a string. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9f7b685..3966aa0 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ import os from setuptools import setup -with open("README.md", "r") as fh: +with open("README.md", "r", encoding="utf_8") as fh: long_description = fh.read()