Skip to content

Commit 2b04ba7

Browse files
committed
Don't build documentation if Sphinx 1.1.2 is installed
Bug: https://bitbucket.org/bobf/bpython/issue/241
1 parent bf1a70a commit 2b04ba7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,14 @@
3333
using_translations = False
3434

3535
try:
36+
import sphinx
3637
from sphinx.setup_command import BuildDoc
37-
using_sphinx = True
38+
if sphinx.__version__ == '1.1.2':
39+
# Sphinx 1.1.2 is buggy and building bpython with that version fails.
40+
# See #241.
41+
using_sphinx = False
42+
else:
43+
using_sphinx = True
3844
except ImportError:
3945
using_sphinx = False
4046

0 commit comments

Comments
 (0)