Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > setup.py installation and module search path

Reply
Thread Tools

setup.py installation and module search path

 
 
Russ
Guest
Posts: n/a
 
      02-20-2007
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.

 
Reply With Quote
 
 
 
 
Larry Bates
Guest
Posts: n/a
 
      02-20-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
 
Reply With Quote
 
 
 
 
Russ
Guest
Posts: n/a
 
      02-20-2007

Larry Bates wrote:

> 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?

 
Reply With Quote
 
Gabriel Genellina
Guest
Posts: n/a
 
      02-21-2007
En Tue, 20 Feb 2007 20:56:13 -0300, Russ <>
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Path as a dictionary tree key? (was Re: PEP on path module forstandard library) Ron Adam Python 3 08-02-2005 04:27 AM
Compiling when libedit is in path Is there a trick to compiling Ruby when libedit must exist in the search path? Can you statically link to readline 5.0 in some manner? -- Lon Baker Lon Baker Ruby 1 03-21-2005 08:57 AM
module search path Ajay Python 1 07-30-2004 03:09 AM
what is Python's module search path? Stephen Ferg Python 3 01-09-2004 07:11 AM
Search for dialog based question/answer module for installation/configuration procedures Raphael Bossek Python 1 08-21-2003 10:56 AM



Advertisments