472,803 Members | 1,001 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,803 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 2120
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.