#9191: Running pyx files from the command line doesn't work anymore
-------------------------------------------------------+--------------------
       Reporter:  was                                  |         Owner:  jason  
     
           Type:  defect                               |        Status:  
needs_review
       Priority:  major                                |     Milestone:  
sage-5.4    
      Component:  misc                                 |    Resolution:         
     
       Keywords:                                       |   Work issues:         
     
Report Upstream:  N/A                                  |     Reviewers:         
     
        Authors:  Karl-Dieter Crisman, Jeroen Demeyer  |     Merged in:         
     
   Dependencies:                                       |      Stopgaps:         
     
-------------------------------------------------------+--------------------
Changes (by {'newvalue': u'Karl-Dieter Crisman, Jeroen Demeyer', 'oldvalue': 
u'Karl-Dieter Crisman'}):

  * author:  Karl-Dieter Crisman => Karl-Dieter Crisman, Jeroen Demeyer


Old description:

> Create a file like this:
> {{{
> flat:tmp wstein$ cat a.spyx
> print "hello"
> }}}
>
> We have:
> {{{
> flat:tmp wstein$ sage a.spyx
> Traceback (most recent call last):
>   File "/Users/wstein/sage/build/sage/local/bin/sage-sagex", line 5, in
> <module>
>     from sage.misc.interpreter import load_sagex
> ImportError: cannot import name load_sagex
> }}}
>
> Note that .pyx files work fine:
>
> {{{
> flat:x wstein$ cp a.spyx a.pyx
> flat:x wstein$ sage a.pyx
> hello
> }}}
>
> '''Apply'''
>  1. [attachment:trac_9191-cython.patch] to the SCRIPTS repo.

New description:

 Create a file like this:
 {{{
 flat:tmp wstein$ cat a.spyx
 print "hello"
 }}}

 We have:
 {{{
 flat:tmp wstein$ sage a.spyx
 Traceback (most recent call last):
   File "/Users/wstein/sage/build/sage/local/bin/sage-sagex", line 5, in
 <module>
     from sage.misc.interpreter import load_sagex
 ImportError: cannot import name load_sagex
 }}}

 Note that .pyx files work fine:

 {{{
 flat:x wstein$ cp a.spyx a.pyx
 flat:x wstein$ sage a.pyx
 hello
 }}}

 '''Apply'''
  1. [attachment:9191_run_cython.patch] to the SCRIPTS repo.
  1. [attachment:9191_doctest_spyx.patch] to the SAGE library.

--

Comment:

 I expanded on your patch, added a doctest.

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

Reply via email to