#11680: support extra_compile_args (e.g., C99) when loading/attaching .pyx 
(cython)
files, and when using %cython in the notebook
---------------------------+------------------------------------------------
   Reporter:  was          |          Owner:  jason     
       Type:  enhancement  |         Status:  new       
   Priority:  minor        |      Milestone:  sage-4.7.2
  Component:  misc         |       Keywords:            
Work_issues:               |       Upstream:  N/A       
   Reviewer:               |         Author:            
     Merged:               |   Dependencies:            
---------------------------+------------------------------------------------
Changes (by leif):

 * cc: robertwb (added)


Comment:

 So what do you propose?

 Since `c99` is actually also ''a program'' (and could be considered a
 language of its own), I'd suggest to both support
 {{{
 #!python
 #clang c99
 }}}
 '''and''' some other way to specify "flags" or compile-time options,
 perhaps also to the linker.

 AFAIK there's currently not even a way to specify `cython` options in a
 `.pyx` file.

 Allowing / using strings that get passed literally to the compiler driver
 (and perhaps also directly to the linker) is very flexible, but the Cython
 files may of course get less portable (which is perhaps a minor issue for
 the Sage library, at least at the moment).

 ----

 What Cython needs, too, is some kind of conditional compilation (à la
 `#ifdef` etc.) anyway... ;-)

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