#13031: Use cythonize() from cython for Sage module building.
-------------------------------+--------------------------------------------
       Reporter:  robertwb     |         Owner:  GeorgSWeber
           Type:  enhancement  |        Status:  needs_work 
       Priority:  major        |     Milestone:  sage-5.1   
      Component:  build        |    Resolution:             
       Keywords:  sd40.5       |   Work issues:             
Report Upstream:  N/A          |     Reviewers:             
        Authors:               |     Merged in:             
   Dependencies:  #13029       |      Stopgaps:             
-------------------------------+--------------------------------------------

Comment (by rohana):

 Would you please make the following change:
 {{{
 #!diff
 --- a
 +++ b
 @@ -1,1 +1,5 @@
 -ext_modules = cythonize(ext_modules, exclude=exclude_modules,
 nthreads=nthreads, cache=os.path.join(DOT_SAGE, 'cythoncache')))
 +if 'CYCACHE_DIR' in os.environ:
 +    CYCACHE_DIR = os.environ['CYCACHE_DIR']
 +else:
 +    CYCACHE_DIR = os.path.join(DOT_SAGE,'cycache')
 +ext_modules = cythonize(ext_modules, exclude=exclude_modules,
 nthreads=nthreads, cache=CYCACHE_DIR))
 }}}
 This way we can easily specify the cache directory separately from
 `DOT_SAGE`.

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