#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):
This change is more important.
{{{
#!diff
@@ -46,12 +51,12 @@ installed = dict(pkgname_split(pkgname)
for pkgname in os.listdir(SAGE_SPKG_INST))
# new-style packages
-local_non_filtered = os.listdir(SAGE_ROOT+"/build/pkgs/")
+local_non_filtered = os.listdir(os.path.join(SAGE_ROOT, "build", "pkgs"))
local = {}
for p in local_non_filtered:
- with open(SAGE_ROOT+"/build/pkgs/"+p+"/package-version.txt") as f:
+ with open(os.path.join(SAGE_ROOT, "build", "pkgs", p, "package-
version.txt")) as f:
version = f.read().strip()
- with open(SAGE_ROOT+"/build/pkgs/"+p+"/type") as f:
+ with open(os.path.join(SAGE_ROOT, "build", "pkgs", p, "type")) as f:
if f.read().strip() == args['category']:
local[p] = version
}}}
I can create a new branch with this change and either of the earlier ones
if you want. Or you can do it.
--
Ticket URL: <http://trac.sagemath.org/ticket/18456#comment:23>
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.