On Apr 23, 1:33 am, "William Stein" <[EMAIL PROTECTED]> wrote: > On 4/22/07, mabshoff <[EMAIL PROTECTED]> wrote: > > > William did mention a while ago that he is interested in a native > > MacOSX application. I played around a couple hours and I now have > > somewhat of a prototype. > > AWESOME! Many many many thanks! > >
One exists to please ;) - and working on this kind of stuff is always fun. It's 2:15 am local time a the moment and I should go to bed to catch some sleep, but once I get going ... > > > To build > > > - > > gethttp://fsmath.mathematik.uni-dortmund.de/~mabshoff/sage/Sage-2.4.2.ap... > > - build sage > > - create a binary release with sage -bdist 2.4.2 > > - Untar Sage-2.4.2.app.tar.gz > > - cd Sage-2.4.2.app/Contents/MacOSX > > - tar xzf /path/to/sage/dist/sage-2.4.2-PowerMacintosh-Darwin.tar.gz - > > C . > > > and you are done. I can upload a dmg once I will be in the office (~7 > > hours from now, much better bandwith) if anybody is interested. > The compressed dmg is ~137MB, I will post a link once I am at the office. > > Problems/know issues: > > - the sage interpreter is not terminated when you leave the notebook - > > one workaround is to to a "killall python" in a shell, but that can't > > be done in the script itseld. This will obviously kill all python > > instances you are running, if you are root it will kill everybody's > > python instances, so be careful. > > That's not a good solution. Best would be for me to add an option > to the server so it automatically dies after some number of seconds > with no activity. Then in your startup script you just pass in that > option. What do you think? > Sounds good - I am trying to figure out if there is a way that the notebook can tell the server to terminate itself. Currently when I quit the notebook sage keeps running and even a "forced quit" of the sage.app via dock does not terminate sage itself. > > - I only tried this with Safari, but if Safari is already running > > "sage -notebook" will fail. > > ?? I think "sage -notebook" should now, by default, pop up your > default OS X browser, depending on which you've chosen in OS X. > It does open the default browser, I reinstalled OSX two days ago and haven't installed firefox yet. > > - if you are on MacIntel you need to adapt the script Sage-2.4.2, > > obviously you need to do the same for other version numbers > > What's different about MacIntel? > The $platform should be different, hence the directory that the script Sage-2.4.2 changes to to execute sage is different. The creation of the app bundle can and will be automated with no need to edit any scripts. This is as stated above just a quick and dirty hack - but it is a start ;) > > Overall this is obviously far from optimal. I will look into Platypus > > (seehttp://mac.softpedia.com/get/System-Utilities/Platypus.shtml) to > > get something better. If anybody would like to take it from here feel > > free to do so. > > What is it that mainly makes it non-optimal? > The need to kill the python interpreted by hand. > > I did take a superficial look at the dist target and in my tarball > > there are ~40 static libs totalling about 35MB - these can probably be > > dropped for a binary release, i.e. that release will not be able to > > rebuld itself. Overall there seems to be some room for improvement by > > getting rid of lots of other files, but that should be discussed in > > another thread. > > I'm not too worried about such optimization at this point. It's > always good to house clean like that every once in a while though. > Ok. > A few days ago I installed TexShop + tex processor on my office macpro; > the compressed download was over 700MB! It's amazing how big software > is these days. But honestly it was very nice because the TexShop (+ tex) > install was almost trivial and really does seem to include everything and > every package I'm likely to want for doing tex. SAGE aims to be something > similar. > I agree, but I don't know the number of downloads of sage at the moment, but if we were to save 25% bandwith per download this wouldn't be a bad thing. > > PS: Any new estimate for 2.5? I am anxious to build an msi installer > > for cygwin and as long as maxima doesn't work correctly on cygwin my > > hands are tied :( > > I'm working on it right now. It's really difficult work, but going > steadily. > Great, please let me know as soon as you are getting ready - that would give me some time to build a msi installer close to the official release of 2.5. There is also an issue at the moment with clock() wrapping every 35 minutes only on cygwin - see http://groups.google.com/group/sage-devel/browse_thread/thread/288c2152da6670a9 - has anybody volunteered to take a close look? > -- > William Stein > Associate Professor of Mathematics > University of Washingtonhttp://www.williamstein.org Cheers, Michael --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---