Installation directory for extensions on Unix

O

Osmo Salomaa

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top