Skip to content

Commit

Permalink
No error if sphinx not installed yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
corviday committed Dec 18, 2019
1 parent a24d6f1 commit b4ca9ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -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():
Expand Down

0 comments on commit b4ca9ec

Please sign in to comment.