On Thu, Apr 14, 2011 at 3:06 AM, Martin Rubey <martin.ru...@math.uni-hannover.de> wrote: > Robert Bradshaw <rober...@math.washington.edu> writes: > >> On Wed, Apr 13, 2011 at 7:19 AM, Martin Rubey >> <martin.ru...@math.uni-hannover.de> wrote: >>> Simon King <simon.k...@uni-jena.de> writes: >>> >>>> On 13 Apr., 15:53, Martin Rubey <martin.ru...@math.uni-hannover.de> >>>> wrote: >>>>> > 2) The spyx file gets a header prepended, meaning that the #cython ... >>>>> > pragmas are not at the top of the file anymore, and so are not >>>>> > applied. (Similar issues happen with __future__ imports). >>>>> >>>>> ... How >>>>> could I circumvent 2)? >>>> >>>> Just guessing: Use .pyx instead of .spyx, if that is possible in your >>>> case? >>> >>> I just tried this, but it makes no difference. Thank you anyway for the >>> hint! >>> >>> Is there a way to check that a given function is profiled? I'll try to >>> make it artificially expensive.. >> >> If it's being profiled, it should show up in the stats. Is profiling >> set up on _home_martin_martin_TeXSource_Mathematik_configs_spyx_13? > > Please bear with me - what would that mean? Yes, the first line of > > /home/martin/martin/TeXSource/Mathematik/configs.spyx > > contains this > > # cython: profle=True > > But I didn't do anything else. What should I do?
The problem, I think, is that something gets inserted in converting an .spyx file to a .pyx file. (Maybe? I actually don't ever use .spyx, let alone via Mathematik) I have no idea how you're eventually compiling the .spyx file. - Robert -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org