setup.py installation and module search path

Larry Bates lbates at websafe.com
Tue Feb 20 18:43:53 EST 2007


Russ wrote:
> When I run setup.py to install a pure python package, is it supposed
> to
> automatically set my search path to find the installed modules? Or am
> I
> supposed to set my PYTHONPATH variable myself in my .bashrc file?
> 
> And what if I don't have root priviledge? Then what is supposed to
> happen? Can anyone give me a clue? Thanks.
> 
I'm no expert, but I think what normally happens is the module gets
installed into ../pythonxx/lib/site-packages/<module> and if it
installs __init__.py file there they get automatically searched.
At least that the way things work for me.

-Larry



More information about the Python-list mailing list