Remove 'build_sphinx_latex'

codesearch.o.o shows a single, long-dead project using this [1]. Let's
just remove it and push people to set 'builders' instead in they really
want LaTeX.

[1] http://codesearch.openstack.org/?q=build_sphinx_latex

Change-Id: I820d9c540ae81717d7b33bbb4d2a4031b529b52c
This commit is contained in:
Stephen Finucane 2017-04-12 11:31:41 +01:00
parent 54fb6e71b7
commit 1ed8531095
3 changed files with 0 additions and 8 deletions

View File

@ -227,8 +227,3 @@ class LocalBuildDoc(setup_command.BuildDoc):
# handle Sphinx < 1.5.0
if not hasattr(self, 'warning_is_error'):
self.warning_is_error = False
class LocalBuildLatex(LocalBuildDoc):
builders = ['latex']
command_name = 'build_sphinx_latex'

View File

@ -49,7 +49,6 @@ class CommandsConfig(base.BaseConfig):
if packaging.have_sphinx():
self.add_command('pbr.builddoc.LocalBuildDoc')
self.add_command('pbr.builddoc.LocalBuildLatex')
if os.path.exists('.testr.conf') and packaging.have_testr():
# There is a .testr.conf file. We want to use it.

View File

@ -536,11 +536,9 @@ try:
# Import the symbols from their new home so the package API stays
# compatible.
LocalBuildDoc = builddoc.LocalBuildDoc
LocalBuildLatex = builddoc.LocalBuildLatex
except ImportError:
_have_sphinx = False
LocalBuildDoc = None
LocalBuildLatex = None
def have_sphinx():