Skip to content

Create a new option: "sage -strip" which deletes things that aren't needed for a binary distribution of sage, or for people that will never develop or upgrade #10801

@williamstein

Description

@williamstein

This is a frequently requested feature. We should start with some little script that does this, and build on it. I tried all the following, and ran the test suite and it worked fine.

  • rm SAGE_ROOT/local/lib/*.a
  • rm SAGE_ROOT/devel/sage/build/lib.*
  • rm SAGE_ROOT/devel/sage/build/temp.*
  • strip SAGE_ROOT/local/bin/Singular-* SAGE_ROOT/local/bin/gfan # gfan is a huge win.
  • jsmath image fonts are in MoinMoin and are HUGE. Just delete everything related to moinmoin...
  • strip SAGE_ROOT/local/lib/*.so
  • rm -rf SAGE_ROOT/local/python/site-package/MoinMoin
  • rm all files in SAGE_ROOT/devel/sage/sage/ that begin "* Generated by Cython" (I didn't do that)

The patches below actually provide a new make target, "micro_release", rather than adding a new option to sage.


Apply attachment: trac_10801-root_repo.patch to the Sage root repository.

Apply attachment: trac_10801-local_bin_repo.patch to the Sage scripts repository.

CC: @jasongrout @kcrisman

Component: packages: standard

Keywords: sd32

Author: William Stein, Keshav Kini

Reviewer: Benjamin Jones, Keshav Kini

Merged: sage-4.7.2.alpha3

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions