diff --git a/pbr/builddoc.py b/pbr/builddoc.py index eedbd163..1359624e 100644 --- a/pbr/builddoc.py +++ b/pbr/builddoc.py @@ -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' diff --git a/pbr/hooks/commands.py b/pbr/hooks/commands.py index d9b56b5d..aa4db704 100644 --- a/pbr/hooks/commands.py +++ b/pbr/hooks/commands.py @@ -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. diff --git a/pbr/packaging.py b/pbr/packaging.py index 484cd24d..a3527c91 100644 --- a/pbr/packaging.py +++ b/pbr/packaging.py @@ -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():