Commit 143586fb authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[pkg] Use with utf-8 encoding to read long description from README

This forces decoding so that this is consistent between Python 2 and 3 as, in
Python 3, decoding which would occur anyways and may fail depending on the
environment locale settings.
parent c655e19cbc35
......@@ -21,6 +21,7 @@
"""Generic Setup script, takes package info from file
import io
import os
import sys
import shutil
......@@ -53,7 +54,8 @@ web = __pkginfo__['web']
author = __pkginfo__['author']
author_email = __pkginfo__['author_email']
long_description = open('README').read()
with'README', encoding='utf-8') as f:
long_description =
# import optional features
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment