Skip to content

Commit a703abc

Browse files
jrebackjorisvandenbossche
authored andcommitted
DOC: increase recursion limit on sphinx builds (pandas-dev#15641)
1 parent 470c327 commit a703abc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/source/conf.py

+8
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
import inspect
1717
from pandas.compat import u, PY3
1818

19+
# https://github.com/sphinx-doc/sphinx/pull/2325/files
20+
# Workaround for sphinx-build recursion limit overflow:
21+
# pickle.dump(doctree, f, pickle.HIGHEST_PROTOCOL)
22+
# RuntimeError: maximum recursion depth exceeded while pickling an object
23+
#
24+
# Python's default allowed recursion depth is 1000.
25+
sys.setrecursionlimit(5000)
26+
1927
# If extensions (or modules to document with autodoc) are in another directory,
2028
# add these directories to sys.path here. If the directory is relative to the
2129
# documentation root, use os.path.abspath to make it absolute, like shown here.

0 commit comments

Comments
 (0)