On 6/27/07, didier deshommes <[EMAIL PROTECTED]> wrote: > It's mostly painless to remove a package if: > -- you know where all its files are. Most of them are in > SAGE_ROOT/local/include/ and SAGE_ROOT/local/lib/ . It's pretty to > figure out what goes where from the spkg-install script. > -- you know that SAGE won't be using the functionality provided by > this package itself. It would be really cool if by removing maxima for > example, the uninstall script also figured out that that > SAGE_ROOT/devel/sage-main/sage/calculus/*.py would also have to be > removed. Really cool, but probably a bit overkill > -- you remove the file with its name located in SAGE_ROOT/spkg/installed/
Pain! Then starting SAGE and type "x^2" would break. That would be nuts. I'm only referring to uninstalling optional packages. > BTW, I have attached a small patch that makes installing an SPKG from > a hard drive possible. Thanks! > On 6/19/07, Brian Granger <[EMAIL PROTECTED]> wrote: > > Isn't newest_version already on the users system if they already have > > sage installed - it is usd to build sage in the first place. > > It's already there, along with all standard packages that are needed > to build SAGE. I'm not sure why it's still being downloaded. > It's downloaded just because I'm worried that if I ever improve it or fix a bug in it, then it needs to be downloaded to the new version will be used. This hasn't happened in a long time, but it used to happen regularly. > > This is a great summary of all spkg things! This should definitely be > > put into the SAGE docs somewhere. > > There is a section on creating an SPKG > (http://modular.math.washington.edu/sage/doc/html/prog/node24.html), I > can update it to reflect the new changes. > > didier > > > > > diff -r 1b20b47c02d7 sage-spkg > --- a/sage-spkg Sat Jun 02 22:31:55 2007 -0700 > +++ b/sage-spkg Wed Jun 27 14:16:26 2007 -0400 > @@ -83,6 +83,12 @@ PKG_NAME=`basename "$PKG_NAME"` > PKG_NAME=`basename "$PKG_NAME"` > PKG_SRC="$1" > PKG_BASE=`echo "$PKG_NAME" | sed -e "s/-.*//"` > + > +# This is a "local" package > +if [ -f "$PKG_SRC" ]; then > + echo "Installing $1 from hard drive" > + PKG_SRC="$1" > +fi > > if [ ! -f "$PKG_SRC" ]; then > if [ -f "$SAGE_PACKAGES/standard/$PKG_NAME.spkg" ]; then > > -- William Stein Associate Professor of Mathematics University of Washington http://www.williamstein.org --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---