#17155: add "sage -installed" and "sage -pip" commands
-------------------------------------+-------------------------------------
Reporter: vdelecroix | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.4
Component: scripts | Resolution:
Keywords: | Merged in:
Authors: Vincent Delecroix | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vdelecroix/17155 | 6ae094b15c7e966a38ca92a280b7974b83c530c7
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by vdelecroix):
Replying to [comment:5 jdemeyer]:
> Use spaces, not TABs for indentation.
>
> Instead of {{{[ ! $(sage -installed | grep -c '^pip-') -eq 1 ]}}},
> I would go with `[ -x "$SAGE_LOCAL/bin/pip" ]`
done. It is much simpler, thanks.
> And why not replace `echo "Pip is not installed. Run \"sage -i pip\" to
install it."` by `sage -i pip || exit $?`?
I do not like to do things in a script that users did not ask for.
Vincent
--
Ticket URL: <http://trac.sagemath.org/ticket/17155#comment:8>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.