Skip to content

Commit

Permalink
Handle missing pypandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mmore500 committed Feb 23, 2025
1 parent 903e354 commit 885b9cb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
"""The setup script."""

from setuptools import setup, find_packages
import pypandoc

with open('README.rst') as readme_file:
readme = pypandoc.convert_text(readme_file.read(), to='md', format='rst')
try:
import pypandoc
with open('README.rst') as readme_file:
readme = pypandoc.convert_text(readme_file.read(), to='md', format='rst')
except ImportError:
readme = 0

requirements = [
'keyname',
Expand Down

0 comments on commit 885b9cb

Please sign in to comment.