Python Eggs Just install in *ONE* place? Easy to uninstall?

S

seberino

It appears that apps distributed as Python Eggs are either a single
compressed
blob in site-packages directory or a directory under site-packages
directory.

Is this ALWAYS true? So by just erasing stuff under site-packages
I can do a COMPLETE uninstallation of an Egg?

Chris
 
J

Jorge Godoy

It appears that apps distributed as Python Eggs are either a single
compressed
blob in site-packages directory or a directory under site-packages
directory.

Is this ALWAYS true? So by just erasing stuff under site-packages
I can do a COMPLETE uninstallation of an Egg?

They might have been added to some ".pth" file there as well, so you'd have
to remove the egg reference from it. Also, they don't need to be installed
only in one place, you can install them somewhere else.

There are uninstall instructions at the documentation:
http://peak.telecommunity.com/DevCenter/setuptools

For other Python Eggs information you might want to check:
http://peak.telecommunity.com/DevCenter/PythonEggs


--
Jorge Godoy <[email protected]>

"Quidquid latine dictum sit, altum sonatur."
- Qualquer coisa dita em latim soa profundo.
- Anything said in Latin sounds smart.
 
J

John J. Lee

It appears that apps distributed as Python Eggs are either a single
compressed
blob in site-packages directory or a directory under site-packages
directory.

Is this ALWAYS true?
No.


So by just erasing stuff under site-packages
I can do a COMPLETE uninstallation of an Egg?

Essentially, yes -- if that's where you installed it. (but there's
also an entry in easy-install.pth)

OTOH, python setup.py install *will* in general install other stuff,
outside of site-packages (or whatever directory you picked). There's
no uninstall command (although Phillip Eby is planning on implementing
just that in setuptools/easy_install 0.7, and of course today you can
already use e.g. bdist_wininst or bdist_rpm and use a system package
manager to install and uninstall -- IIUC those commands will install
(and uninstall) eggs if the setup.py uses setuptools).

Eggs are not an installation format: and other formats do exist -- for
example, "python setup.py develop" on a setuptools-based project will
give you an egg installed via an .egg-link file.

By the way, the distutils-sig mailing list is a good place to ask
these questions.


John
 
S

seberino

But not matter where eggs are installed they
are never spread across multiple places
on hard drive right? An egg is all under
one node of tree right?
 
S

seberino

But not matter where eggs are installed they
are never spread across multiple places
on hard drive right? An egg is all under
one node of tree right?
 
D

Damjan

But not matter where eggs are installed they
are never spread across multiple places
on hard drive right? An egg is all under
one node of tree right?

From what I've seen, no.
For example installing TurboGears will also install the tg-admin script
in /usr/bin/ and there are a lot of other projects that install custom
scripts.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top