forked from pool/python-pbr
- add 0001-Allow-overwriting-sphinx-builder-list-from-command-l.patch 0001-use-get_boolean_option-for-warnerrors.patch OBS-URL: https://build.opensuse.org/request/show/258645 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pbr?expand=0&rev=22
33 lines
1.2 KiB
Diff
33 lines
1.2 KiB
Diff
From 0a56da8b582842e767046977e61a7021ab279f44 Mon Sep 17 00:00:00 2001
|
|
From: Dirk Mueller <dirk@dmllr.de>
|
|
Date: Thu, 28 Aug 2014 12:42:56 +0200
|
|
Subject: [PATCH] Allow overwriting sphinx builder list from command line
|
|
|
|
This restores the behavior of being able to explicitely select
|
|
only one builder via "python setup.py build_sphinx -b man".
|
|
|
|
Change-Id: I4c7ddcaf413e1bcc72550b3d920f8a777a710c97
|
|
---
|
|
pbr/packaging.py | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/pbr/packaging.py b/pbr/packaging.py
|
|
index a57b453..b910587 100644
|
|
--- a/pbr/packaging.py
|
|
+++ b/pbr/packaging.py
|
|
@@ -761,6 +761,11 @@ try:
|
|
# Allow builders to be configurable - as a comma separated list.
|
|
if not isinstance(self.builders, list) and self.builders:
|
|
self.builders = self.builders.split(',')
|
|
+ # Handle builder option from command line
|
|
+ option_dict = self.distribution.get_option_dict('build_sphinx')
|
|
+ if 'command line' in option_dict.get('builder', [[]])[0]:
|
|
+ self.builders = [x for x in self.builders
|
|
+ if x == option_dict['builder'][1]]
|
|
|
|
class LocalBuildLatex(LocalBuildDoc):
|
|
builders = ['latex']
|
|
--
|
|
2.0.4
|
|
|