Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set setup.py open file encoding to UTF-8 #2067

Closed
wants to merge 2 commits into from

Conversation

farseerfc
Copy link
Contributor

Package building environments usually differ with a working environment
where locale settings are tricky. This change enforce using UTF-8 to
open files in setup.py in order to avoid possible encoding errors when
reading README and changelog files when they contain non-ASCII chars.

Package building environments usually differ with a working environment
where locale settings are tricky. This change enforce using UTF-8 to
open files in setup.py in order to avoid possible encoding errors when
reading README and changelog files when they contain non-ASCII chars.
Use open in io for encoding under python2
@justinmayer
Copy link
Member

Many thanks for the fix, Jiachen. We didn't notice this until after #2082 was merged. Nonetheless, we really appreciate your help! (^_^)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants