468,284 Members | 1,489 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,284 developers. It's quick & easy.

setup.py installation and module search path

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.

Feb 20 '07 #1
3 1200
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/<moduleand if it
installs __init__.py file there they get automatically searched.
At least that the way things work for me.

-Larry
Feb 20 '07 #2

Larry Bates wrote:
I'm no expert, but I think what normally happens is the module gets
installed into ../pythonxx/lib/site-packages/<moduleand 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?

Feb 21 '07 #3
En Tue, 20 Feb 2007 20:56:13 -0300, Russ <uy*******@sneakemail.com>
escribió:
>I'm no expert, but I think what normally happens is the module gets
installed into ../pythonxx/lib/site-packages/<moduleand 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

Feb 21 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Ryno Rijnsburger | last post: by
2 posts views Thread by serge calderara | last post: by
1 post views Thread by Gianmaria | last post: by
6 posts views Thread by dhaval321 | last post: by
reply views Thread by fscharff | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.