Thanks for that... someone might care to fix it... I think it used to work. It calls sage -python passing all the command line.
More importantly what would be involved in using the system framework based python - would it just be a case of setting $PYTHON to be /usr/ bin/python? Cheers, Simon On Aug 29, 1:34 am, Carl Witty <[EMAIL PROTECTED]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---