diff --git a/setup.py b/setup.py index a2b946a..4e66b28 100644 --- a/setup.py +++ b/setup.py @@ -39,6 +39,13 @@ "pytest-cov >= 2, < 3" ] + +# Readthedocs requires Sphinx extensions to be specified as part of +# install_requires in order to build properly. +if os.environ.get("READTHEDOCS", None) == "True": + INSTALL_REQUIRES.extend(DOC_REQUIRES) + + setup( name="champollion", version=VERSION,