diff --git a/setup.py b/setup.py index 3a3c89cc..bbb3ad50 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,10 @@ import os from setuptools import setup, find_packages -from sphinx.setup_command import BuildDoc +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():