On 6/22/07, William Stein <[EMAIL PROTECTED]> wrote:
> Could you say something about the fact that currently there is no way
> to uninstall
> a SAGE package, since we don't track what files are actually
> installed.  That said,
> we definitely *could* implement something simple that stores a list of
> all files installed
> in the install certificate in the spkg/installed directory.  I'm
> thinking of something like
> computing a list of all files before then after the install, hence
> getting a list of what
> was installed (plus a list of files overwritten).   Anyway, I'm just
> randomly throwing this
> out for comment.  Maybe people who do gentoo/rpm/deb's can make a more
> intelligent comment.     For SAGE uninstall isn't a big deal, since 
> essentially
> nobody ever wants to uninstall a package.

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/

BTW, I have attached a small patch that makes installing an SPKG from
a hard drive possible.

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.

> 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

--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---

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

Reply via email to