#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:
---------------------------+------------------------------------------------
Comment(by leif):
Replying to [comment:4 leif]:
> I don't know if we'd in addition need something like
{{{
#!python
#cpragma "CFLAGS" "-D_XPG6 --some-very-rare-and-specific-options
another_argument"
#cpragma "LDFLAGS" "-L/unusual/location"
}}}
> etc.
We could even extend this to conditionals (e.g. depending on the operating
system):
{{{
#!python
#cpragma "CFLAGS" SunOS, HP-UX ? "-D_XPG6" : ""
}}}
where `SunOS` etc. are arbitrary predefined predicates.
(Using `&&` and `||` there would perhaps be more appropriate, besides the
ternary `? :` expression. `!` for negation shouldn't be necessary, though
also desirable.)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11680#comment:5>
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.