I do it on my sarge system.
As Kevin already pointed out, you're missing the .pth files. You need
to include that directory in the --site-dirs option to easy_install.
See:
http://peak.telecommunity.com/DevCenter/EasyInstall#command-line-options
under the --site-dirs option for an explanation of how to set up an
alternate installation location. If you follow those directions and
then install again, you should end up with two more files:
setuptools.pth and easy_install.pth, and Python should actually
recognize the directory then.
Basically those are the instructions for installing in a non-standard
location when you are root and can therefore do those setup steps in
your main Python installation. Just substitute
/usr/local/lib/python2.4/site-packages for the ~/lib/python2.3 example
directory in the instructions and you should be good to go. Also, if
you want the /usr/local directory to be the default installation
location so you don't have to use -d all the time, you can also add:
[install]
install_lib = /usr/local/lib/python2.4/site-packages
to the distutils.cfg file as described in the instructions, in addition
to the site_dirs setting.
Yes. You can set the default for any easy_install option that way.
For boolean options, set them to 1.
Note, however, that the [easy_install] section does *not* support $
variables, so the above configuration probably doesn't work correctly.
The $ variables only work in the [install] section, and no, you can't
put site_dirs there. Just list the paths explicitly in site_dirs.
> > to the distutils.cfg file as described in the instructions, in addition
> > to the site_dirs setting.
>
> I just noticed that neither python2.3 or python2.4 in Debian include
> a distutils.cfg file. It sounds like a bug to me, so I will try to
> contact the package maintainer and get him to add it (since the
> /usr/local/lib/python*/site-packages dir is created by the package).
That would be good, as long as they also include the altinstall.pth so
that the .pth files in the /usr/local tree get handled. By having a
distutils/distutils.cfg with the defaults set as well, they will make
it easy for people to actually use /usr/local, and people won't have as
many problems using EasyInstall. They *do*, however, need to have the
/usr/local/ site-packages directory in sys.path come *before* the /usr
one, though, or locally installed packages won't be able to override
the system-installed ones.
> I will add some info about this to
> http://trac.turbogears.org/turbogears/wiki/SystemInstall so other
> Debian user won't run into the same trouble.
Good idea, and thanks.
I'll go further than that - feel free to have them contact me directly
if they'd like me to review their plans or patches. I want to help
system packagers make their systems as "egg friendly" as possible.