#18456: Re-Fix standard_packages(), optional_packages(), and
experimental_packages()
-------------------------+-------------------------------------------------
Reporter: | Owner:
ncohen | Status: needs_review
Type: | Milestone: sage-6.8
enhancement | Resolution:
Priority: major | Merged in:
Component: | Reviewers:
distribution | Work issues:
Keywords: | Commit:
Authors: | a3402c959a7d74ede7a58ae1d75b17faba0ac52d
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
u/ncohen/18456 |
Dependencies: |
#18431 |
-------------------------+-------------------------------------------------
Comment (by jhpalmieri):
What do you think about either of these changes?
{{{
#!diff
diff --git a/src/bin/sage-list-packages b/src/bin/sage-list-packages
index 5b17272..e1b0889 100755
--- a/src/bin/sage-list-packages
+++ b/src/bin/sage-list-packages
@@ -16,7 +16,12 @@ SAGE_ROOT = os.environ["SAGE_ROOT"]
# Input parsing #
#################
-parser = argparse.ArgumentParser(description="List Sage's packages")
+parser =
argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter,
+ description="""List Sage's packages, by
default in the format
+
+ {:.<30} {}
+
+""".format("package", "version on-line (version installed)"))
parser.add_argument('category',
choices=['standard','optional','experimental', 'installed'],
metavar="category",
help="The type of packages. Can be
'standard','optional','experimental' or 'installed'.")
parser.add_argument('--dump', dest='dump', default=False,
action='store_true',
@@ -76,6 +81,10 @@ if args['remote'] and args['category']!='installed':
# OUTPUT #
##########
+if not args['dump']:
+ print("{:.<40} {}".format("PACKAGE", "version on-line (version
installed)"))
+ print("-"*76)
+
# installed
if args['category'] == 'installed':
if args['version']:
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/18456#comment:22>
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.