#9507: if spkg-install is a Python script, first check that 
SAGE_LOCAL/bin/python
exists.
---------------------------+------------------------------------------------
   Reporter:  was          |       Owner:  GeorgSWeber
       Type:  enhancement  |      Status:  new        
   Priority:  major        |   Milestone:  sage-4.5.1 
  Component:  build        |    Keywords:             
     Author:               |    Upstream:  N/A        
   Reviewer:               |      Merged:             
Work_issues:               |  
---------------------------+------------------------------------------------

Comment(by drkirkby):

 How do you check if Python exists in a Python script? I would have thought
 the code to check Python exists would have relied on Python existing - a
 catch 22. Of course, if you happen to have a system wide Python, then you
 could use that to check for $SAGE_LOCAL/bin/python. But that's going to be
 far from reliable, since:
  * A system may have no Python
  * A system Python may be too old.
  * A system Python may not work properly, which is what appears to have
 happened in your sage_fortran setup.

 But I guess it is more reliable than no test at all, but I can't think of
 a 100% sure-fire way of doing this. One could make all spkg-install's
 /bin/sh scripts, and use that to check for Python before calling a Python
 script. But that's a lot of messing around, and one probably more likely
 to introduce a bug than detect one.

 Dave

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