setup.py installation and module search path

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Russ

    #1

    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.

  • Larry Bates

    #2
    Re: setup.py installation and module search path

    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

    Comment

    • Russ

      #3
      Re: setup.py installation and module search path


      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?

      Comment

      • Gabriel Genellina

        #4
        Re: setup.py installation and module search path

        En Tue, 20 Feb 2007 20:56:13 -0300, Russ <uymqlp502@snea kemail.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

        Comment

        Working...