[PEAK] dumb question about easy_install

Phillip J. Eby pje at telecommunity.com
Wed Jun 28 19:45:00 EDT 2006


At 06:40 PM 6/28/2006 -0400, Michael Bayer wrote:
>OK, im just not understanding how to override a site-packages egg
>install with a local (development) install, egg or otherwise.
>
>i have the package installed as a setuptools egg in the global site- 
>packages.   normally, this is what i want.  PYTHONPATH is not set.
>
>but then, I want to be able to cd into a directory somewhere where
>theres a newer/older version of the package, and run some scripts
>against that one.
>
>I cd into my local checkout of the same application.  say its in a
>directory "sa020" and the python files are in "./lib/sqlalchemy/".
>
>         cd ~/sa020/
>         export PYTHONPATH=./lib/
>         python setup.py develop -d ./lib/

This isn't what you want.  What you want to do is point PYTHONPATH to a 
staging directory of some sort, and put that directory on the "develop" 
line.  What you're doing here is trying to install the library *onto 
itself*.  -d and PYTHONPATH need to be some *other* location, to which 
you're installing.


>which overrides the site-packages version, but also requires root
>access.  how would I do this without requiring root access ?

mkdir ~/py_lib
export PYTHONPATH=~/py_lib
cd ~/sa020
python setup.py develop -d ~/py_lib




More information about the PEAK mailing list