Installation directory for extensions on Unix

Discussion in 'Python' started by Osmo Salomaa, Feb 6, 2009.

  1. Osmo Salomaa

    Osmo Salomaa Guest

    I have written an extension (a.k.a. plugin or add-on, not C-extension)
    system for my application and I'm going to ship two extensions with it.
    Each extension is in a directory of its own and that directory contains
    Python files and various data files, e.g. Glade XML files and PNG icons.

    Where should I install these extension directories on a Unix system?
    $PREFIX/share/foo or $PREFIX/lib/foo? How do I handle compiling with
    distutils if installing Python code outside the default site-packages
    directory?

    Importing these extensions is handled by listing the contents of the
    extension directory and using __import__ on the specified files, so the
    installation directory does not need to be anywhere near $PYTHONPATH.

    --
    Osmo Salomaa <>
     
    Osmo Salomaa, Feb 6, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    12
    Views:
    1,702
    Dave Thompson
    Jan 10, 2005
  2. Alberto Vera
    Replies:
    0
    Views:
    286
    Alberto Vera
    Oct 31, 2003
  3. John Ky
    Replies:
    1
    Views:
    359
    Daniel Dittmar
    Nov 24, 2003
  4. Replies:
    18
    Views:
    656
    Dave Thompson
    Jan 10, 2005
  5. Robert Wallace

    my own perl "dos->unix"/"unix->dos"

    Robert Wallace, Jan 21, 2004, in forum: Perl Misc
    Replies:
    7
    Views:
    312
    Michele Dondi
    Jan 22, 2004
Loading...

Share This Page