setup.py installation and module search path

Gabriel Genellina gagsl-py at yahoo.com.ar
Wed Feb 21 01:22:43 EST 2007


En Tue, 20 Feb 2007 20:56:13 -0300, Russ <uymqlp502 at sneakemail.com>  
escribió:

>> 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.
>
> But if I don't have root priviledge, that doesn't happen. Is there a
> setup.py option to get a
> package installed just in my own account in such a way that my module
> search path gets
> updated?

Use the --home option (or --prefix). You may need to set the PYTHONPATH  
environment variable to ~/lib/python

-- 
Gabriel Genellina




More information about the Python-list mailing list