Skip to content

Commit f3cec2b

Browse files
committed
PYTHON-1496 - Support Sphinx 1.7
1 parent 5b92576 commit f3cec2b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@
2525
from distutils.errors import DistutilsPlatformError, DistutilsExecError
2626
from distutils.core import Extension
2727

28+
_HAVE_SPHINX = True
2829
try:
29-
import sphinx
30-
_HAVE_SPHINX = True
30+
from sphinx.cmd import build as sphinx
3131
except ImportError:
32-
_HAVE_SPHINX = False
32+
try:
33+
import sphinx
34+
except ImportError:
35+
_HAVE_SPHINX = False
3336

3437
version = "3.7.0.dev0"
3538

0 commit comments

Comments
 (0)