473,325 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

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

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
5 2154
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
"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
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
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
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matthias Baas | last post by:
Hi, are there any guidelines about what to do if a Windows extension for Python 2.4 requires the C++ runtime (msvcp71.dll)? If I want to distribute a binary installer of an extension that...
9
by: seberino | last post by:
I have been using distuils for a while and was wondering when Python Eggs (new project) is better? So basically Python Eggs precompiles and compresses binaries for you so you just have to load...
3
by: eduardo.rosa | last post by:
Hy people, I'm new in python and comming from JAVA. Something I really like in java is the easy way to add a library to the project. Just put the jar file in the folder ( WEB-INF/lib ) and...
0
by: Jeff Rush | last post by:
Eggs are important to Python and will become more so over the next few years, if understood and embraced by the community. They are a key competitive feature - I've been asked so many times what...
15
by: John Nagle | last post by:
I've been installing Python and its supporting packages on a dedicated server with Fedora Core 6 for about a day now. This is a standard dedicated rackmount server in a colocation facility,...
4
by: Alia Khouri | last post by:
Can we open up the discussion here about how to improve setuptools which has become the de facto standard for distributing / installing python software. I've been playing around with ruby's gems...
2
by: bsagert | last post by:
I downloaded Mark Pilgrims's feedparser.py in a zipfile to my Windows machine, unzipped it and tried to install it to no avail. Here is the result => C:\>python...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.