Reducing installation size on Mac OS X

122 views
Skip to first unread message

John

unread,
Aug 13, 2008, 1:36:43 PM8/13/08
to sage-edu
Hi,

I'm working on a project at Harvard which aims to use SAGE in an intro
physics course. Among other things, we are planning to have SAGE
installed on OS X machines in the computer lab. However, space on said
machines is limited, and we were wondering if there is any way to
reduce the installation size. Could we easily modify it so that it
doesn't include the documentation, and instead links to http://www.sagemath.org/doc/
? Are there any files we can remove without breaking anything?

Thanks

- John Bestoso

William Stein

unread,
Aug 13, 2008, 2:42:52 PM8/13/08
to sage...@googlegroups.com, Arthur Gaer

The short answer is that "yes", you can delete the docs directory if
you want to save space. This will only break the "help" button in the
upper right corner of the notebook, which should be ok as long as you
tell the students clearly that they should use sagemath.org instead.

Are you installing from a binary distribution or did you build from source?

Is this the smaller lab on the second floor of the Science Center
(just curious)?

What's your target for space, e.g., if it fit in 600MB would that be small
enough?

William

John

unread,
Aug 14, 2008, 1:19:12 PM8/14/08
to sage-edu
This is in the main lab in the basement, and we used a binary
distribution rather than build from source. We don't really have a
target size; we're just trying to make it as small as possible --
we're competing for disc space with other courses that want to install
software on the computers, and we're at "low priority" because the
installation is so large. Thanks for the help.

- John Bestoso

On Aug 13, 2:42 pm, "William Stein" <wst...@gmail.com> wrote:
> On Wed, Aug 13, 2008 at 10:36 AM, John <jbest...@fas.harvard.edu> wrote:
>
> > Hi,
>
> > I'm working on a project at Harvard which aims to use SAGE in an intro
> > physics course. Among other things, we are planning to have SAGE
> > installed on OS X machines in the computer lab. However, space on said
> > machines is limited, and we were wondering if there is any way to
> > reduce the installation size. Could we easily modify it so that it
> > doesn't include the documentation, and instead links tohttp://www.sagemath.org/doc/

William Stein

unread,
Aug 14, 2008, 2:19:23 PM8/14/08
to sage...@googlegroups.com, Arthur Gaer, Pete Chvany, Michael Abshoff
On Thu, Aug 14, 2008 at 10:19 AM, John <jbes...@fas.harvard.edu> wrote:
>
> This is in the main lab in the basement, and we used a binary
> distribution rather than build from source. We don't really have a
> target size; we're just trying to make it as small as possible --
> we're competing for disc space with other courses that want to install
> software on the computers, and we're at "low priority" because the
> installation is so large. Thanks for the help.
>
> - John Bestoso

Are those machines all Intel-based OS X boxes now? Are they
running OS X 10.5.x? I could build a binary for you that is
smaller and test it out.

-- William

John

unread,
Aug 15, 2008, 8:52:48 AM8/15/08
to sage-edu
They are all Intel machines. If you could build a smaller binary for
us, that would be great. Thanks again for your help.

- John Bestoso

On Aug 14, 2:19 pm, "William Stein" <wst...@gmail.com> wrote:

William Stein

unread,
Aug 26, 2008, 4:28:11 AM8/26/08
to sage...@googlegroups.com, Arthur Gaer, Michael Abshoff
On Fri, Aug 15, 2008 at 5:52 AM, John <jbes...@fas.harvard.edu> wrote:
>
> They are all Intel machines. If you could build a smaller binary for
> us, that would be great. Thanks again for your help.
>
> - John Bestoso

Hi,

I just spent a while looking at this, and I'm really really nervous about
shrinking the binary further. The space break down is as follows:

8 makefile
8 sage
8 sage-README-osx.txt
24 README.txt
24 matplotlibrc
120 ipython
144 COPYING.txt
616 HISTORY.txt
1480 spkg
8080 examples
38368 data
64304 doc
265472 devel <--- bigger for you by default!
1122744 local

Notice that doc is trivial in size compared to local, and having
looked a bunch at
local the size there is mostly in certain libs (not binaries).
In my opinion it would be a very bad idea to shrink the sage install
much further, and would just be asking for things to break.

I did make a somewhat small binary for you, which eliminates some
cruft from the devel directory that isn't needed to run Sage. It's
here:

http://sage.math.washington.edu/home/was/tmp/sage-3.1.1-osx10.5-intel-small.tar.bz2

-- William

Reply all
Reply to author
Forward
0 new messages