Thread: [Anygui-users] Uninstalling anygui ;)
Brought to you by:
mlh
|
From: Stephen B. <st...@th...> - 2002-02-06 14:55:16
|
... so that I can uninstall the newer version, of course. I thought that "python setup.py uninstall" in the previous beta would work, but it doesn't. What's the correct way to uninstall the previous version before installing the newer version? Thanks. -- Stephen |
|
From: Kalle S. <ka...@gn...> - 2002-02-06 15:13:59
|
[Stephen Boulet] > ... so that I can uninstall the newer version, of course. > > I thought that "python setup.py uninstall" in the previous beta would work, > but it doesn't. What's the correct way to uninstall the previous version > before installing the newer version? I don't think you have to, at the moment. But the easiest way would be to rm -r /usr/local/lib/python2.1/site-packages/anygui or your local equivalent. That is, just remove the anygui directory. Peace, Kalle -- Kalle Svensson (ka...@gn...) - Laziness, impatience, hubris: Pick two! English: http://www.gnupung.net/ Svenska: http://www.lysator.liu.se/~kalle/ Stuff: ["http://www.%s.org/" % x for x in "gnu debian python emacs".split()] |
|
From: Magnus L. H. <ma...@he...> - 2002-02-07 08:19:13
|
Kalle Svensson <ka...@gn...>: > > [Stephen Boulet] > > ... so that I can uninstall the newer version, of course. > > > > I thought that "python setup.py uninstall" in the previous beta would work, > > but it doesn't. What's the correct way to uninstall the previous version > > before installing the newer version? > > I don't think you have to, at the moment. No, neither do I. The old stuff will be overwritten by the new stuff. (I guess that if a new release doesn't have a file that was present in an old one, that wouldn't be overwritten, but it wouldn't be used either, so... :) > But the easiest way would > be to > rm -r /usr/local/lib/python2.1/site-packages/anygui > or your local equivalent. That is, just remove the anygui directory. Right. We could of course add this sort of thing in our setup script (i.e. ad an uninstall command), but then we'd have to remember the install prefix etc. I guess there is a reason why they haven't added this to distutils in general (although I wish they had :) > Peace, > Kalle -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |
|
From: Thomas H. <tho...@io...> - 2002-02-07 08:38:43
|
> We could of course add this sort of thing in our setup script (i.e. ad > an uninstall command), but then we'd have to remember the install > prefix etc. I guess there is a reason why they haven't added this to > distutils in general (although I wish they had :) > They have ;-). At least in the windows installer (setup.py bdist_wininst), which can also be created on Linux, btw. Knowing (nearly) nothing about Linux, isn't there also uninstall support for rpm? Maybe we should provide more downloads than the tar.gz archive... Thomas |
|
From: Magnus L. H. <ma...@he...> - 2002-02-07 08:47:22
|
Thomas Heller <tho...@io...>: > > > > We could of course add this sort of thing in our setup script (i.e. ad > > an uninstall command), but then we'd have to remember the install > > prefix etc. I guess there is a reason why they haven't added this to > > distutils in general (although I wish they had :) > > > They have ;-). At least in the windows installer (setup.py bdist_wininst), > which can also be created on Linux, btw. > Knowing (nearly) nothing about Linux, isn't there also uninstall support > for rpm? Yes. :) I meant for the distutils install mechanism. The others (windows installer, rpm etc.) are really different mechanisms. That they have uninstall options is nice, of course, but I still think the distutils command set ought to include it... So you could do $ python setup.py install and then $ python setup.py uninstall It sounds so logical... But, as I said, we *can* do it ourselves... We'd just have to store (in a file in the distribution) where the files go. > Maybe we should provide more downloads than the tar.gz archive... Perhaps. I know I like rpms and windos installers myself... :) I'll take a look when we get to the next release. > Thomas -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |
|
From: Thomas H. <tho...@io...> - 2002-02-07 09:01:23
Attachments:
deinstall.py
|
From: "Magnus Lie Hetland" <ma...@he...>
> Thomas Heller <tho...@io...>:
> >
> >
> > > We could of course add this sort of thing in our setup script (i.e. ad
> > > an uninstall command), but then we'd have to remember the install
> > > prefix etc. I guess there is a reason why they haven't added this to
> > > distutils in general (although I wish they had :)
> > >
> > They have ;-). At least in the windows installer (setup.py bdist_wininst),
> > which can also be created on Linux, btw.
> > Knowing (nearly) nothing about Linux, isn't there also uninstall support
> > for rpm?
>
> Yes.
>
> :)
>
> I meant for the distutils install mechanism. The others (windows
> installer, rpm etc.) are really different mechanisms. That they have
> uninstall options is nice, of course, but I still think the distutils
> command set ought to include it... So you could do
>
> $ python setup.py install
>
> and then
>
> $ python setup.py uninstall
>
> It sounds so logical... But, as I said, we *can* do it ourselves...
> We'd just have to store (in a file in the distribution) where the
> files go.
>
I've appended a simpleminded 'deinstall' class which I use in other setup
scripts.
Enable it with
setup(...
cmdclass = {'deinstall': deinstall},
...
)
in the setup script.
Thomas
|
|
From: Magnus L. H. <ma...@he...> - 2002-02-07 09:15:42
|
Thomas Heller <tho...@io...>:
>
> I've appended a simpleminded 'deinstall' class which I use in other setup
> scripts.
> Enable it with
> setup(...
> cmdclass = {'deinstall': deinstall},
> ...
> )
>
> in the setup script.
This looks very good. Anyone opposed to adding this? (I wonder why
distutils itself doesn't include something like this :)
> Thomas
--
Magnus Lie Hetland The Anygui Project
http://hetland.org http://anygui.org
|