Skip to content

Commit c492a46

Browse files
committed
download pandoc
1 parent f01abae commit c492a46

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

setup.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,15 @@
1010
try:
1111
long_description = pypandoc.convert('README.md', 'rst')
1212
except OSError as e:
13-
print("Pypandoc import failed, please install pandoc.")
13+
print("Pypandoc import failed, trying to download pancdoc...")
14+
pypandoc.download_pandoc()
15+
16+
print("Trying to convert again...")
17+
18+
try:
19+
long_description = pypandoc.convert('README.md', 'rst')
20+
except OSError as e:
21+
print("Readme conversion failed.")
1422
sys.exit(1)
1523

1624
# cv_version.py should be generated by running find_version.py

0 commit comments

Comments
 (0)