From b4ca9ec7522dd52dc0e5ae7c23297bcbdccdd3cd Mon Sep 17 00:00:00 2001 From: corviday Date: Wed, 18 Dec 2019 14:16:35 -0800 Subject: [PATCH] No error if sphinx not installed yet. --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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():