Fix #4669: sphinx.build_main and sphinx.make_main throw NameError

This commit is contained in:
Takeshi KOMIYA
2018-02-25 01:10:36 +09:00
parent a37f253a6b
commit 616e487941
2 changed files with 4 additions and 0 deletions

View File

@@ -16,6 +16,8 @@ Features added
Bugs fixed
----------
* #4669: sphinx.build_main and sphinx.make_main throw NameError
Testing
--------

View File

@@ -73,6 +73,7 @@ def main(*args, **kwargs):
def build_main(argv=sys.argv):
"""Sphinx build "main" command-line entry."""
from .cmd import build
warnings.warn(
'`sphinx.build_main()` has moved to `sphinx.cmd.build.build_main()`.',
RemovedInSphinx20Warning,
@@ -83,6 +84,7 @@ def build_main(argv=sys.argv):
def make_main(argv=sys.argv):
"""Sphinx build "make mode" entry."""
from .cmd import build
warnings.warn(
'`sphinx.build_main()` has moved to `sphinx.cmd.build.make_main()`.',
RemovedInSphinx20Warning,