Michele Cella wrote:
> I'm running Ubuntu and the most painless solution I've found (at least
> for me) it's to install every thing egg-related on /usr/local, I've put
> this on my .pydistutils.cfg:
>
> [install]
> prefix=/usr/local
>
> [easy_install]
> site-dirs=/usr/local/lib/python2.4/site-packages
>
> then when I need to install/upgrade I do it by using sudo, if for some
> reason I need to remove something by hand I can find it under
> /usr/local without the fear of removing the wrong thing.

The above is actually a recommended pattern on platforms that treat
/usr/local/.../site-packages as a "site" directory - which is to say,
Debian-based systems.  It's basically an abbreviated form of
"Administrator Installation":

http://peak.telecommunity.com/DevCenter/EasyInstall#administrator-installation

but you can skip the .pth setup part, since Debian-based systems have
patched Python to make the /usr/local/.../site-packages valid.


> Virtaul python was not the best for me since it copies many packages

It doesn't copy anything except for the actual 'python' executable;
everything else is symlinked.  So the disk usage is quite minimal, and
you can actually make lots of virtual Pythons if you need them for some
reason.

Reply via email to