diff --git a/doc/make.py b/doc/make.py
index cc6cc1feb33349e0b2ebbf5921ce22202648f90b..426ee602849da1ed90fd56f7b40773aadc9496c8 100644
--- a/doc/make.py
+++ b/doc/make.py
@@ -5,12 +5,7 @@ import shutil
 from ost import settings
 from optparse import OptionParser
 import subprocess
-try:
-    # Import for new versions of Sphinx (tested with 2.3.0)
-    from sphinx.cmd.build import main as sphinx_main
-except ImportError:
-    # Import for older versions of Sphinx (should work with 1.6.7)
-    from sphinx import main as sphinx_main
+import sphinx.cmd.build
 
 if len(sys.argv)==2:
   root_dir=sys.argv[1]
@@ -96,14 +91,14 @@ for sub_dir in ('modules',):
     _CollectRstDocs('doc/source', directory, filenames)
 
 if opts.html:
-  sphinx_main(extra_opts + ['-b', 'html', '-c', 'doc/conf', 'doc/source', 'doc/build/html'])
+  sphinx.cmd.build.main(extra_opts + ['-b', 'html', '-c', 'doc/conf', 'doc/source', 'doc/build/html'])
 
 if opts.doctest:
-  sphinx_main(extra_opts + ['-b', 'doctest', '-c', 'doc/conf', 'doc/source', 'doc/build/html'])
+  sphinx.cmd.build.main(extra_opts + ['-b', 'doctest', '-c', 'doc/conf', 'doc/source', 'doc/build/html'])
 
 if opts.build_json:
-  sphinx_main(extra_opts + ['-b', 'json', '-c', 'doc/conf', 'doc/source', 'doc/build/html'])
+  sphinx.cmd.build.main(extra_opts + ['-b', 'json', '-c', 'doc/conf', 'doc/source', 'doc/build/html'])
 
 if opts.linkcheck:
-  sphinx_main(extra_opts + ['-b', 'linkcheck', '-c', 'doc/conf', 'doc/source', 'doc/build/html'])
+  sphinx.cmd.build.main(extra_opts + ['-b', 'linkcheck', '-c', 'doc/conf', 'doc/source', 'doc/build/html'])