On Aug 28, 4:34 pm, Simon Beaumont <[EMAIL PROTECTED]> wrote:
> Well any python code fails to work as expected:
>
> try: sage-python -c "import sys"
>  File "<string>", line 1
>     import
>          ^
> SyntaxError: invalid syntax
>
> ... -c "print;print" # will print two line feeds however
>
> this came up when trying to configure boost for sage, wherein
> configure has:
>
> $PYTHON -c "import sys; print (\"%d.%d\" % (sys.version_info[0],
> sys.version_info[1]))"`

"sage-python" is a shell script that sends its arguments to the Sage
python (assuming sage is in your path).  Evidently it is buggy.

However, you don't want to be using sage-python anyway; instead, you
want to arrange things so that $PYTHON points to $SAGE_ROOT/local/bin/
python .

Carl

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to