Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Shezad Khan committed Oct 8, 2017
1 parent 528941d commit 4f2242b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

from setuptools import setup, find_packages

try:
import pypandoc
except (IOError, ImportError):
pypandoc = None


###################################################################

Expand Down Expand Up @@ -72,7 +77,7 @@ def find_meta(meta):
maintainer=find_meta("author"),
maintainer_email=find_meta("email"),
keywords=KEYWORDS,
long_description=read("README.rst"),
long_description=pypandoc.convert(read("README.md"), to="rst", format="markdown_github") if pypandoc else "",
packages=PACKAGES,
package_dir={"": "src"},
zip_safe=False,
Expand Down

0 comments on commit 4f2242b

Please sign in to comment.