#12602: Rework download/extract code in sage-spkg
---------------------------+------------------------------------------------
Reporter: jdemeyer | Owner: GeorgSWeber
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: build | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author: Jeroen Demeyer
Merged: | Dependencies: #12479
---------------------------+------------------------------------------------
Description changed by jdemeyer:
Old description:
> The current code in `sage-spkg` to determine which package to install and
> whether to download it is too complicated (and probably buggy). Also get
> rid of calls to the `newest_version` script, allow gzip compression of
> .spkg files, get rid of the "download again" part (why was it needed?).
>
> There is one important change in behaviour: when specifying a download
> URL, it will always download the file, even if a corresponding spkg
> exists locally. I think this is more in line with expectations.
New description:
The current code in `sage-spkg` to determine which package to install and
whether to download it is buggy and too complicated. Also get rid of
calls to the `newest_version` script, allow gzip compression of .spkg
files, get rid of the "download again" part (why was it needed?).
Changes in behaviour:
1. When specifying a download URL, it will always download the file, even
if a corresponding spkg exists locally. This allows for easier
development of spkgs, because people often post updated spkgs with the
same version number.
2. "sage -f package" without a version number will use the most recent
(by modification time) local spkg in spkg/standard or spkg/optional. Only
if no such package exists, it will try to download it. This makes it
consistent with "sage -f package-x.y.z" with a version number.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12602#comment:7>
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.