Skip to content

Commit

Permalink
Adding import error for sphinx_rtd_theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
unhyperbolic committed Feb 19, 2024
1 parent f6fd967 commit 3dc7473
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
"""

no_sphinx_theme_message = """
You need to have Spinx's rtd theme installed to rebuild the
documentation for snappy module, e.g.
sudo python -m pip install sphinx_rtd_theme
"""

no_wheel_message = """
You need to have wheel installed to pip_install snappy, e.g.,
Expand Down Expand Up @@ -111,6 +119,10 @@ def run(self):
import sphinx
except ImportError:
raise ImportError(no_sphinx_message)
try:
import sphinx_rtd_theme
except ImportError:
raise ImportError(no_sphinx_theme_message)
sphinx_cmd = load_entry_point('sphinx>=1.7', 'console_scripts', 'sphinx-build')
sphinx_args = ['-a', '-E', '-d', 'doc_src/_build/doctrees',
'doc_src', 'python/doc']
Expand Down

0 comments on commit 3dc7473

Please sign in to comment.