Skip to content

Commit

Permalink
Avoid using concurrency with Sphinx 3.0 due to a bug in that version
Browse files Browse the repository at this point in the history
  • Loading branch information
randombit committed Apr 8, 2020
1 parent 8a6202a commit 773ccb0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/scripts/build_docs.py
Expand Up @@ -139,7 +139,14 @@ def sphinx_supports_concurrency():
match = re.match(r'^(?:[a-zA-Z_-]+) v?(([0-9]+)\.([0-9]+))', output)
# default to using concurrency when uncertain
version = StrictVersion(match.group(1)) if match else StrictVersion('1.2')
return version >= StrictVersion('1.4')

if version < StrictVersion('1.4'):
# not supported
return False
if version >= StrictVersion('3.0'):
# Bug in Sphinx 3.0 https://github.com/sphinx-doc/sphinx/issues/7438
return False
return True

def read_config(config):
try:
Expand Down

0 comments on commit 773ccb0

Please sign in to comment.