#6495: Build the reference manual incrementally
-----------------------------------------------+----------------------------
       Reporter:  mpatel                       |         Owner:  tba         
           Type:  enhancement                  |        Status:  needs_work  
       Priority:  major                        |     Milestone:  sage-5.0    
      Component:  documentation                |    Resolution:              
       Keywords:                               |   Work issues:  citations   
Report Upstream:  N/A                          |     Reviewers:  Volker Braun
        Authors:  Mitesh Patel, John Palmieri  |     Merged in:              
   Dependencies:  #12016                       |      Stopgaps:              
-----------------------------------------------+----------------------------

Comment (by jhpalmieri):

 As far as handling ctrl-c, I found
 [http://stackoverflow.com/questions/1408356/keyboard-interrupts-with-
 pythons-multiprocessing-pool this question]. It seems we can replace
 `pool.apply_async(ARGS)` with `pool.apply_async(ARGS).get(999999)`. This
 apparently adds a (very long) timeout to the process, and it apparently
 works around a bug in Python. In practice, it seems to work for me.
 {{{
 #!diff
 diff --git a/doc/common/builder.py b/doc/common/builder.py
 --- a/doc/common/builder.py
 +++ b/doc/common/builder.py
 @@ -415,7 +415,7 @@ class ReferenceBuilder(AllBuilder):
              for doc in self.get_all_documents(refdir):
                  pool.apply_async(build_ref_doc,
                                   (doc, lang, format,
 -                                  os.path.split(output_dir)[0]) + args,
 kwds)
 +                                  os.path.split(output_dir)[0]) + args,
 kwds).get(999999)
              pool.close()
              pool.join()
              if format == 'html':
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6495#comment:69>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to