File tree 2 files changed +8
-2
lines changed 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ script:
142
142
gdb -return-child-result -batch -ex r -ex bt --args python tests.py -s --processes=$NPROC --process-timeout=300 $TEST_ARGS
143
143
else
144
144
cd doc
145
- python make.py html
145
+ python make.py html -n 2
146
146
# We don't build the LaTeX docs here, so linkchecker will complain
147
147
touch build/html/Matplotlib.pdf
148
148
linkchecker build/html/index.html
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def html(buildername='html'):
53
53
if warnings_as_errors :
54
54
options = options + ' -W'
55
55
if os .system ('sphinx-build -j %d %s -b %s -d build/doctrees . build/%s' % (
56
- 2 , options , buildername , buildername )):
56
+ n_proc , options , buildername , buildername )):
57
57
raise SystemExit ("Building HTML failed." )
58
58
59
59
# Clean out PDF files from the _images directory
@@ -147,6 +147,7 @@ def all():
147
147
148
148
small_docs = False
149
149
warnings_as_errors = True
150
+ n_proc = 1
150
151
151
152
# Change directory to the one containing this file
152
153
current_dir = os .getcwd ()
@@ -195,11 +196,16 @@ def all():
195
196
parser .add_argument ("--allowsphinxwarnings" ,
196
197
help = "Don't turn Sphinx warnings into errors" ,
197
198
action = "store_true" )
199
+ parser .add_argument ("-n" ,
200
+ help = "Number of parallel workers to use" )
201
+
198
202
args = parser .parse_args ()
199
203
if args .small :
200
204
small_docs = True
201
205
if args .allowsphinxwarnings :
202
206
warnings_as_errors = False
207
+ if args .n is not None :
208
+ n_proc = int (args .n )
203
209
204
210
if args .cmd :
205
211
for command in args .cmd :
You can’t perform that action at this time.
0 commit comments