Skip to content

Commit 4d3527a

Browse files
committed
Build fixed
1 parent 3cef9cf commit 4d3527a

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

conf.py

+19-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
templates_path = ['cpython/Doc/tools/templates']
3434
html_static_path = ['cpython/Doc/tools/static']
3535

36-
extensions.append('sphinx_autorun')
37-
3836
os.system('mkdir -p cpython/locales/es/')
3937
os.system('ln -nfs `pwd` cpython/locales/es/LC_MESSAGES')
4038

@@ -107,3 +105,22 @@ def add_contributing_banner(app, doctree):
107105
app.srcdir = 'cpython/Doc'
108106

109107
app.connect('doctree-read', add_contributing_banner)
108+
109+
# Import the sphinx-autorun manually to avoid this warning
110+
# TODO: Remove this code and use just ``extensions.append('sphinx_autorun')`` when
111+
# that issue gets fixed
112+
# See https://github.com/WhyNotHugo/sphinx-autorun/issues/17
113+
114+
# WARNING: the sphinx_autorun extension does not declare if it is safe for
115+
# parallel reading, assuming it isn't - please ask the extension author to
116+
# check and make it explicit
117+
# WARNING: doing serial read
118+
from sphinx_autorun import RunBlock, AutoRun
119+
app.add_directive('runblock', RunBlock)
120+
app.connect('builder-inited', AutoRun.builder_init)
121+
app.add_config_value('autorun_languages', AutoRun.config, 'env')
122+
return {
123+
'version': '0.1',
124+
'parallel_read_safe': True,
125+
'parallel_write_safe': True,
126+
}

0 commit comments

Comments
 (0)