Re: Egg deinstallation

2009-01-12 Thread Diez B. Roggisch
mk wrote:

 Hello everyone,
 
 I googled and googled and can't seem to find the definitive answer: how
 to *properly* deinstall egg? Just delete the folder and/or .py and .pyc
 files from Lib/site-packages? Would that break anything in Python
 installation or not?

It depends on how you installed it. If it is done via
setuptools/easy_install, you should also clean up the 

site-packages/easy-install.pth

file.

Diez
--
http://mail.python.org/mailman/listinfo/python-list


Re: Egg deinstallation

2009-01-12 Thread mk

Diez B. Roggisch wrote:

Thanks, Diez.



--
http://mail.python.org/mailman/listinfo/python-list


Re: Egg deinstallation

2009-01-12 Thread Ned Deily
In article 6t139nf8ip4...@mid.uni-berlin.de,
 Diez B. Roggisch de...@nospam.web.de wrote:
 mk wrote:
  I googled and googled and can't seem to find the definitive answer: how
  to *properly* deinstall egg? Just delete the folder and/or .py and .pyc
  files from Lib/site-packages? Would that break anything in Python
  installation or not?
 
 It depends on how you installed it. If it is done via
 setuptools/easy_install, you should also clean up the 
 
 site-packages/easy-install.pth
 
 file.

... and which you can do by editing that file directly or by using the 
easy_install -m option to mark the egg as multi-version before deleting.  
In either case, keep in mind that the egg may have installed one or more 
scripts; those have to be removed manually.

http://peak.telecommunity.com/DevCenter/EasyInstall#uninstalling-package
s

-- 
 Ned Deily,
 n...@acm.org

--
http://mail.python.org/mailman/listinfo/python-list


Re: Egg deinstallation

2009-01-12 Thread excord80
On Jan 12, 9:36 am, mk mrk...@gmail.com wrote:
 Hello everyone,

 I googled and googled and can't seem to find the definitive answer: how
 to *properly* deinstall egg? Just delete the folder and/or .py and .pyc
 files from Lib/site-packages? Would that break anything in Python
 installation or not?

As an aside, note that there's no automated way to uninstall (for
exmaple, like doing aptitude purge or make uninstall). It's a
known problem with setuptools/eggs/easy_install/whatever.

Dunno if pip [1] yet solves this problem or not.

http://pip.openplans.org/
--
http://mail.python.org/mailman/listinfo/python-list


Re: Egg deinstallation

2009-01-12 Thread Jeff McNeil
On Jan 12, 9:36 am, mk mrk...@gmail.com wrote:
 Hello everyone,

 I googled and googled and can't seem to find the definitive answer: how
 to *properly* deinstall egg? Just delete the folder and/or .py and .pyc
 files from Lib/site-packages? Would that break anything in Python
 installation or not?

 Regards,
 mk

You might find a tool like VirtualEnv (http://pypi.python.org/pypi/
virtualenv/1.3.2) useful.  It allows you to create a localized sandbox
such that you don't stomp all over your system installation or require
elevated privileges.  It's good for development or toying with
different eggs.  When you're done, simply blow away the environment.
I've used it for just about everything over the past few months, it's
a wonderful tool.

Jeff

--
http://mail.python.org/mailman/listinfo/python-list