Skip to content

DOC: remove latex and parallel building #15637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 9, 2017

Conversation

jorisvandenbossche
Copy link
Member

No description provided.

@jreback jreback added the Docs label Mar 9, 2017
@jorisvandenbossche
Copy link
Member Author

This seemed to work on my fork on travis, but not sure why removing the parallel would fix it.

@jreback
Copy link
Contributor

jreback commented Mar 9, 2017

yep this looks good. fyi

not exactly sure what is wrong here :>

/tmp/doc/source/io.rst:3097: ERROR: Error in "ipython" directive:
invalid option block.
.. ipython:: python
   :suppress:
   import os
   os.remove("data.pkl.compress")
   os.remove("data.pkl.xz")
   os.remove("data.pkl.gz")
   os.remove("s1.pkl.bz2")
/tmp/doc/source/overview.rst:120: WARNING: Include file '/tmp/LICENSE' not found or reading it failed
source/whatsnew/v0.20.0.txt:141: ERROR: Error in "ipython" directive:
invalid option block.

@jorisvandenbossche
Copy link
Member Author

needs a white line, pushed a fix to this branch

@@ -3096,6 +3096,7 @@ The default is to 'infer

.. ipython:: python
:suppress:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same line in v0.20.0.txt as well :>

@jorisvandenbossche jorisvandenbossche merged commit 470c327 into pandas-dev:master Mar 9, 2017
@jreback
Copy link
Contributor

jreback commented Mar 10, 2017

I restarted a couple of times: https://travis-ci.org/pandas-dev/pandas/jobs/209555204

maybe: https://groups.google.com/forum/#!msg/sphinx-dev/MtRf64eGtv4/aOa7FdxkAgAJ

here's a fix (increase stack :>)

--- a/docs/users_guide/conf.py
+++ b/docs/users_guide/conf.py
@@ -147,6 +147,8 @@ def parse_flag(env, sig, signode):
 def setup(app):
     from sphinx.util.docfields import Field, TypedField
 
+    increase_python_stack()
+
     # the :ghci-cmd: directive used in ghci.rst
     app.add_object_type('ghci-cmd', 'ghci-cmd',
                         parse_node=parse_ghci_cmd,
@@ -171,3 +173,11 @@ def setup(app):
                             Field('since', label='Introduced in GHC version', names=['since']),
                             Field('static')
                         ])
+
+def increase_python_stack():
+    # Workaround sphinx-build recursion limit overflow:
+    # pickle.dump(doctree, f, pickle.HIGHEST_PROTOCOL)
+    #  RuntimeError: maximum recursion depth exceeded while pickling an object
+    #
+    # Default python allows recursion depth of 1000 calls.
+    sys.setrecursionlimit(10000)

@jreback
Copy link
Contributor

jreback commented Mar 10, 2017

https://github.com/sphinx-doc/sphinx/pull/2325/files is a better view on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants