gh wrote:
> Correction/Addition.
>
> The previous works fine for installation but "kid" won't run.
>
> I created ~/py/sitecustomize.py
>
> cat > py/sitecustomize.py <<EOF
> import sys, os, os.path
>
> setuptools_dir = '/usr/local/lib/python2.4/site-packages'
> for x in os.listdir(os.path.expanduser(setuptools_dir)):
>     eggpath = os.path.join(setuptools_dir, x)
>     if x.endswith('.egg') and os.path.isdir(eggpath):
>         sys.path.insert(0, eggpath)
> EOF

I strongly recommend that people *not* do this!  You will prevent
easy_install from being able to work correctly with your installation
in the future!

Setuptools 0.6a6 supports installation to almost any directory using
PYTHONPATH if you want to do it that way, and it also includes a script
to setup a virtual Python if you prefer using that approach.  But you
will need to get rid of the above cruft.

For the correct non-root installation instructions for 0.6a6, please
see:


http://cvs.sourceforge.net/viewcvs.py/python/python/nondist/sandbox/setuptools/EasyInstall.txt?view=markup

Or better yet, just use this script to create a ~/bin/python that will
do everything as it should:

    http://peak.telecommunity.com/dist/virtual-python.py

It should work even with setuptools 0.6a5.

I strongly recommend that you get rid of the sitecustomize.py and the
/usr/local stuff you did, and use either the virtual-python script or
upgrade to setuptools 0.6a6 from CVS.

Please, don't anybody else do what's described here - easy_install will
NOT work properly if you do this.  Somebody posted these broken
instructions to the Wiki, but I got distracted working on 0.6a6 and
forgot to delete them from the Wiki.  I've now added a warning to the
wiki page that you should BACK OUT these steps if you've done them.
Use the virtual-python script or use 0.6a6; those are the only safe
choices.

Reply via email to