#10176: ImportError: No module named sagenb on openSUSE
------------------------------+---------------------------------------------
   Reporter:  mpatel          |       Owner:  jason, was  
       Type:  defect          |      Status:  needs_review
   Priority:  blocker         |   Milestone:  sage-4.6    
  Component:  notebook        |    Keywords:              
     Author:  Leif Leonhardy  |    Upstream:  N/A         
   Reviewer:                  |      Merged:              
Work_issues:                  |  
------------------------------+---------------------------------------------

Comment(by leif):

 Replying to [comment:12 hivert]:
 > > Could you also take a look at {{{easy-install.pth}}}'s modification
 time after reinstalling the spkg?
 >
 > Looks reasonable. It has been touched at the end of the build.

 I just realized that (unless the script exits prematurely) the
 "modification" time will always change, regardless if the file really got
 modified, since we do an analogue of
 {{{
 #!sh
 sed ... file.orig > file.new
 mv -f file.new file.orig
 }}}
 (Using the unfortunately non-POSIX {{{-i}}} (in-place) option of {{{sed}}}
 would avoid this...)

 Should we do
 {{{
 #!sh
 if diff file.orig file.new >/dev/null; then
     rm -f file.new # just clean up
 else
     mv -f file.new file.orig
 fi
 # or, in short form:
 diff file.orig file.new >/dev/null && rm -f file.new || mv -f file.new
 file.orig
 }}}
 ? ;-)

 Dave, how do your ''"Sage programmer's How to work around non-portable
 non-POSIX commands, options and built-in shell functions"'' wiki pages
 fare?

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