Skip to content

Commit

Permalink
docs: try to hackaround the installation issues on RTD
Browse files Browse the repository at this point in the history
  • Loading branch information
swistakm committed Feb 10, 2017
1 parent 228d3dc commit 4bda41b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@
import sys

from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize

try:
from Cython.Build import cythonize
except ImportError:
# note: This is only to cheat the RTD builds from single requirement file
# with -e flag. This package will be either distributed with C
# sources or as properly built wheels from Travis CI and Appveyor.
if os.environ.get('READTHEDOCS', None) == 'True':
cythonize = lambda x: x
else:
raise

try:
from pypandoc import convert
Expand Down

0 comments on commit 4bda41b

Please sign in to comment.