#10826: Make numpy support SAGE_SPKG_INSTALL_DOCS
-------------------------+--------------------------------------------------
 Reporter:  jason        |         Owner:  tbd         
     Type:  enhancement  |        Status:  needs_work  
 Priority:  major        |     Milestone:  sage-4.7    
Component:  packages     |    Resolution:              
 Keywords:               |        Author:  Jason Grout 
 Upstream:  N/A          |      Reviewer:  David Kirkby
   Merged:               |   Work_issues:              
-------------------------+--------------------------------------------------
Changes (by jdemeyer):

  * status:  new => needs_work


Comment:

 Dan Drake wrote on sage-devel:

 Hrm. There is a problem with numpy when SAGE_SPKG_INSTALL_DOCS is set.
 Here's the relevant part of the log:

 {{{
     make[2]: Entering directory
 `/home/drake/s/sage-4.7.alpha4/spkg/build/numpy-1.5.1.p0/src/doc'
     mkdir -p build
     touch build/generate-stamp
     mkdir -p build/html build/doctrees
     LANG=C sphinx-build -b html -d build/doctrees   source build/html
     /bin/sh: sphinx-build: not found
     make[2]: *** [html] Error 127
     make[2]: Leaving directory
 `/home/drake/s/sage-4.7.alpha4/spkg/build/numpy-1.5.1.p0/src/doc'
     Error building numpy docs.
 }}}

 This is a fresh build from source. It looks like we need to alter the
 build dependencies to get Sphinx built early. Or perhaps the spkg
 installation script could check to see if the INSTALL_DOCS variable is
 set, and if so, check that Sphinx is built?

 The tricky thing here seems to be that the build deps are different if
 SAGE_SPKG_INSTALL_DOCS is set.

 I installed the Sphinx spkg and restarted the build, but now I get:

 {{{
     make[2]: Entering directory
 `/home/drake/s/sage-4.7.alpha4/spkg/build/numpy-1.5.1.p0/src/doc'
     mkdir -p build
     touch build/generate-stamp
     mkdir -p build/html build/doctrees
     LANG=C sphinx-build -b html -d build/doctrees   source build/html
     Traceback (most recent call last):
       File "/home/drake/s/sage-4.7.alpha4/local/bin/sphinx-build", line 6,
 in <module>
         import sage.all
     ImportError: No module named sage.all
     make[2]: *** [html] Error 1
     make[2]: Leaving directory
 `/home/drake/s/sage-4.7.alpha4/spkg/build/numpy-1.5.1.p0/src/doc'
     Error building numpy docs.
 }}}

 Yikes. Do we need the Sage library before we can build any Sphinx
 documents? Do we need to build documents *after* the usual build process
 is done?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10826#comment:17>
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