From 2310ca2c08eb04919479434d40cc162e8bfaa0c6 Mon Sep 17 00:00:00 2001 From: mzwiessele Date: Sun, 11 Oct 2015 16:09:04 +0100 Subject: [PATCH] [doc] pypandoc --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 8d81397f..e8637b7c 100644 --- a/setup.py +++ b/setup.py @@ -54,8 +54,9 @@ def read_to_rst(fname): try: import pypandoc #print 'Warning in installation: For rst formatting in pypi, consider installing pypandoc for conversion' - with open('README.rst', 'w') as f: - f.write(unicode(pypandoc.convert('README.md', 'rst'), 'utf-8')) + #with open('README.rst', 'w') as f: + # f.write(pypandoc.convert('README.md', 'rst')) + pypandoc.convert('README.md', 'rst', outfile='README.rst') except ImportError: return read(fname)