mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-08 15:05:15 +02:00
[doc] pypandoc
This commit is contained in:
parent
d4c016feff
commit
2310ca2c08
1 changed files with 3 additions and 2 deletions
5
setup.py
5
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue