提交 c492a461 编写于 作者: O Olli-Pekka Heinisuo

download pandoc

上级 f01abae3
......@@ -10,7 +10,15 @@ long_description = ""
try:
long_description = pypandoc.convert('README.md', 'rst')
except OSError as e:
print("Pypandoc import failed, please install pandoc.")
print("Pypandoc import failed, trying to download pancdoc...")
pypandoc.download_pandoc()
print("Trying to convert again...")
try:
long_description = pypandoc.convert('README.md', 'rst')
except OSError as e:
print("Readme conversion failed.")
sys.exit(1)
# cv_version.py should be generated by running find_version.py
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册