Skip to content

Rework download/extract code in sage-spkg #12602

@jdemeyer

Description

@jdemeyer

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, 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.
  3. Allow gzip compression (in addition to bzip2 and no compression) of spkgs.

Apply attachment: 12602_spkg_download.patch to the SAGE_ROOT repository.

Depends on #12479

CC: @jhpalmieri

Component: build

Author: Jeroen Demeyer

Reviewer: John Palmieri

Merged: sage-5.0.beta10

Issue created by migration from https://trac.sagemath.org/ticket/12602

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions