Update sphinx_runner to use Sphinx >= 2

sphinx_runner does not work with Sphinx >= 2.0 since it checks for sphinx >= 1.7, < 2 instead of checking for sphinx >= 1.7.

GitOrigin-RevId: 79a3f72cc71228808d99899304763af052a988e4
This commit is contained in:
Matthieu
2019-06-10 15:11:44 +03:00
committed by intellij-monorepo-bot
parent 91f3430bbc
commit 8d1990cc07
+1 -1
View File
@@ -8,7 +8,7 @@ if __name__ == "__main__":
raise NameError("Cannot find sphinx in selected interpreter.")
version = sphinx.version_info
if version[0] >= 1 and version[1] >= 7:
if (version[0] >= 1 and version[1] >= 7) or version[0] >= 2:
from sphinx.cmd import build
build.main(sys.argv[1:])
else: