#9992: Python scripts try to run before Python is built.
------------------------+---------------------------------------------------
Reporter: drkirkby | Owner: GeorgSWeber
Type: defect | Status: new
Priority: major | Milestone: sage-4.6
Component: build | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Comment(by drkirkby):
Replying to [comment:4 leif]:
> Replying to [comment:3 drkirkby]:
> > OK, well this is easy to fix by putting an
> {{{
> #!sh
> if [ -f '$SAGE_LOCAL/bin/python" ] ; then
> # Run the python script.
> fi
> }}}
>
> That's an improvement, though it is not clear if we in the near future
make Python a prerequisite (or intentionally use a system Python for such
if one is present).
I hope we don't.
* We rely on someone's Python working right. It was a failure of Python
on William's machine which cased a headache recently with
{{{sage_fortran}}}. Though he had Python, his version was not working in a
way necessary to perform the task it was asked to do. That's why he was
the only one to see the bug - not everyone else.
* It would be even harder to justify shipping a large tarfile to
maintainers of Debian or similar when we say Python is a prequiste, but
also we include the Python source. I think that gets a bit silly.
* On platforms like AIX, or the smaller cut-down Linux distributions,
they may well not include Python. Some have tried building Sage on a
mobile phone. I doubt that is as practical if we make Python a
prerequisite and still ship the source code.
> > I'll leave you to modify the python script if you want to.
>
> I thought you were going to rewrite it as a shell script (which could as
well be called from {{{sage-spkg}}}).
No, I think it will be easier to leave it untouched, but only call it if
{{{$SAGE_ROOT/local/bin/python}}} exists. The script appears to work and
if it is called from multiple places, I'd have to duplicate its
functionality accurately - even though I think they are a bit dumb.
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9992#comment:5>
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.