diff --git a/setup.py b/setup.py index 3a3c89cc..4dbfc9f2 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,11 @@ import os from setuptools import setup, find_packages -from sphinx.setup_command import BuildDoc +from warnings import warn +try: + from sphinx.setup_command import BuildDoc +except ImportError: + warn("Could not import sphinx. You won't be able to build the docs") def recursive_list(pkg_dir, basedir): def find():