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:
parent
54fb6e71b7
commit
1ed8531095
@ -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'
|
||||
|
@ -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.
|
||||
|
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user