Kaydet (Commit) 6a71ac61 authored tarafından Tim Graham's avatar Tim Graham

Fixed possible "RuntimeError: maximum recursion depth exceeded" building docs.

üst 11af73ea
...@@ -16,6 +16,15 @@ from __future__ import unicode_literals ...@@ -16,6 +16,15 @@ from __future__ import unicode_literals
import sys import sys
from os.path import abspath, dirname, join from os.path import abspath, dirname, join
# Workaround for sphinx-build recursion limit overflow:
# pickle.dump(doctree, f, pickle.HIGHEST_PROTOCOL)
# RuntimeError: maximum recursion depth exceeded while pickling an object
#
# Python's default allowed recursion depth is 1000 but this isn't enough for
# building docs/ref/settings.txt sometimes.
# https://groups.google.com/d/topic/sphinx-dev/MtRf64eGtv4/discussion
sys.setrecursionlimit(2000)
# Make sure we get the version of this copy of Django # Make sure we get the version of this copy of Django
sys.path.insert(1, dirname(dirname(abspath(__file__)))) sys.path.insert(1, dirname(dirname(abspath(__file__))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment