Readline is a package which has no dependences other than BASE (see $SAGE_ROOT/spkg/standard/deps). So it can be built very early - before Python.

This is part of the log from a successful installation of readline.

=================================================================
-bash-4.1$ tail spkg/logs/readline-6.0.p2.log
make[2]: Leaving directory `/home/users/drkirkby/sage-4.6.alpha1/spkg/build/readline-6.0.p2/src'

real    8m1.326s
user    4m33.895s
sys     0m50.145s
Successfully installed readline-6.0.p2
Now cleaning up tmp files.
Making Sage/Python scripts relocatable...
python: No such file or directory
Finished installing readline-6.0.p2.spkg
==================================================================

Notice two of the last last 3 lines above say

Making Sage/Python scripts relocatable...
python: No such file or directory

William created
http://trac.sagemath.org/sage_trac/ticket/9507

to check that SAGE_LOCAL/bin/python exists before running any packages that have spkg-install in them, but there's nothing to stop Sage trying to run python scrips before Python is installed.

As we found on bsd.math, a slightly broken version of Python caused all sorts of problems when sage_fortran got screwed up.

Clearly Python is not installed on this system, as we can test in two ways.

1) The portable (POSIX compatible test)
-bash-4.1$ command -v python

2) The non-portable (non POSIX) test you are probably more familiar with.
-bash-4.1$ which python
which: 0652-141 There is no python in /opt/pware/bin /usr/bin /etc /usr/sbin /usr/ucb /home/users/drkirkby/bin /usr/bin/X11 /sbin ..


So there's no Python installed on this system, but Sage has generated messages that python does not exist, and that its making Sage/Python scripts relocatable, before it has built Python.

This I believe is a bug, which was unsurprisingly found when trying to build Sage on a less popular operating system (AIX).

Dave

--
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

Reply via email to