By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,272 Members | 1,420 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,272 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

May 6 '06 #1
Share this Question
Share on Google+
5 Replies


P: n/a
se******@spawar.navy.mil wrote:
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 <go***@ieee.org>

"Quidquid latine dictum sit, altum sonatur."
- Qualquer coisa dita em latim soa profundo.
- Anything said in Latin sounds smart.
May 7 '06 #2

P: n/a
"se******@spawar.navy.mil" <se******@spawar.navy.mil> writes:
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

May 7 '06 #3

P: n/a
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?

May 8 '06 #4

P: n/a
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?

May 8 '06 #5

P: n/a
> 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.
--
damjan
May 8 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.